Skip to content

Commit

Permalink
feat: add web container feature
Browse files Browse the repository at this point in the history
  • Loading branch information
TrumanDu committed May 16, 2024
1 parent db2c1e1 commit d9b344a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-prototype-builtins */
/* eslint-disable promise/always-return */
/* eslint-disable global-require */
/* eslint-disable prefer-promise-reject-errors */
Expand Down Expand Up @@ -217,7 +218,10 @@ class PluginManager {

this.store.set(storeId, { width, height });
});
if (pluginObj.webContainer) {
if (
pluginObj.hasOwnProperty('webContainer') &&
pluginObj.webContainer === true
) {
let url: string;
if (!this.webContainers.has(name)) {
const port = await this.container.listenPlugin(
Expand Down

0 comments on commit d9b344a

Please sign in to comment.