diff --git a/packages/plugin-ext/src/hosted/browser/worker/worker-main.ts b/packages/plugin-ext/src/hosted/browser/worker/worker-main.ts index 56045b5f839fe..3739987040f1a 100644 --- a/packages/plugin-ext/src/hosted/browser/worker/worker-main.ts +++ b/packages/plugin-ext/src/hosted/browser/worker/worker-main.ts @@ -45,7 +45,7 @@ const pluginsModulesNames = new Map(); const scripts = new Set(); function initialize(contextPath: string, pluginMetadata: PluginMetadata): void { - const path = '/context/' + contextPath; + const path = './context/' + contextPath; if (!scripts.has(path)) { ctx.importScripts(path); @@ -70,7 +70,7 @@ pluginManager.setPluginHost({ ctx.frontendModuleName = plugin.lifecycle.frontendModuleName; } - ctx.importScripts('/hostedPlugin/' + getPluginId(plugin.model) + '/' + plugin.pluginPath); + ctx.importScripts('./hostedPlugin/' + getPluginId(plugin.model) + '/' + plugin.pluginPath); } }