From d9b344a2aa8fcf2031f7e54905a76eee4dbce777 Mon Sep 17 00:00:00 2001 From: TrumanDu Date: Thu, 16 May 2024 15:16:43 +0800 Subject: [PATCH] feat: add web container feature --- src/main/plugin.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/plugin.ts b/src/main/plugin.ts index 7a477c0..e50a2be 100644 --- a/src/main/plugin.ts +++ b/src/main/plugin.ts @@ -1,3 +1,4 @@ +/* eslint-disable no-prototype-builtins */ /* eslint-disable promise/always-return */ /* eslint-disable global-require */ /* eslint-disable prefer-promise-reject-errors */ @@ -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(