@datagrok/sequence-translator 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +1 -1
- package/dist/package.js.map +1 -1
- package/package.json +1 -1
- package/src/plugins/mermade.ts +8 -8
package/package.json
CHANGED
package/src/plugins/mermade.ts
CHANGED
|
@@ -23,16 +23,16 @@ export async function getExternalAppViewFactories(): Promise<{[name: string]: ()
|
|
|
23
23
|
let div: HTMLDivElement;
|
|
24
24
|
try {
|
|
25
25
|
div = await grok.functions.call(pluginName, data.parameters);
|
|
26
|
-
|
|
27
|
-
console.error(`Plugin ${pluginName} not loaded, error:`, err)
|
|
28
|
-
div = ui.divText('error loading');
|
|
29
|
-
}
|
|
30
|
-
const pluginUI = new ExternalPluginUI(data.tabName, div);
|
|
26
|
+
const pluginUI = new ExternalPluginUI(data.tabName, div);
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
// intentonally don't await for the promise
|
|
29
|
+
pluginUI.initView();
|
|
34
30
|
|
|
35
|
-
|
|
31
|
+
result[data.tabName] = () => pluginUI.getView();
|
|
32
|
+
} catch (err) {
|
|
33
|
+
console.warn(`Plugin ${pluginName} not loaded, reason:`, err)
|
|
34
|
+
continue;
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
return result;
|
|
38
38
|
}
|