Skip to content
Snippets Groups Projects
Commit d5d08542 authored by dsehnal's avatar dsehnal
Browse files

tweak

parent 564a360c
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ export async function createPluginUI(target: HTMLElement, spec?: PluginUISpec, o ...@@ -15,7 +15,7 @@ export async function createPluginUI(target: HTMLElement, spec?: PluginUISpec, o
const ctx = new PluginUIContext(spec || DefaultPluginUISpec()); const ctx = new PluginUIContext(spec || DefaultPluginUISpec());
await ctx.init(); await ctx.init();
if (options?.onBeforeUIRender) { if (options?.onBeforeUIRender) {
await options?.onBeforeUIRender(ctx); await options.onBeforeUIRender(ctx);
} }
ReactDOM.render(React.createElement(Plugin, { plugin: ctx }), target); ReactDOM.render(React.createElement(Plugin, { plugin: ctx }), target);
return ctx; return ctx;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment