Skip to content

Commit

Permalink
deploy: 5db2595
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanguage committed Apr 19, 2024
1 parent 1b5e2a6 commit 4447316
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,8 @@
Object.assign(this, imjoy_api);
this.getWindow = this.getWindowOveride;
this.createWindow = this.createWindowOveride;
this.loadPlugin = this.loadPluginOveride;
this.getPlugin = this.getPluginOveride;
}

async getWindowOveride(config) {
Expand All @@ -348,6 +350,18 @@
return windowWrapper;
}

async loadPluginOveride(config) {
const plugin = await this.imjoy_api.loadPlugin(config);
const pluginWrapper = new PluginWrapper(plugin);
return pluginWrapper;
}

async getPluginOveride(config) {
const plugin = await this.imjoy_api.getPlugin(config);
const pluginWrapper = new PluginWrapper(plugin);
return pluginWrapper;
}

async restart() {
await restart();
}
Expand Down

0 comments on commit 4447316

Please sign in to comment.