@lvce-editor/extension-management-worker 4.52.2 → 4.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2558,7 +2558,8 @@ const createWebViewWorkerRpc2 = async (rpcInfo, port) => {
2558
2558
  // host sub-worker doesn't need to import the other file
2559
2559
  if (rpcInfo.contentSecurityPolicy) {
2560
2560
  const pathName = new URL(rpcInfo.url, 'http://localhost').pathname;
2561
- await invoke('ExtensionHostWorkerContentSecurityPolicy.set', pathName, rpcInfo.contentSecurityPolicy);
2561
+ const contentSecurityPolicy = getContentSecurityPolicy(rpcInfo.contentSecurityPolicy, rpcInfo.url);
2562
+ await invoke('ExtensionHostWorkerContentSecurityPolicy.set', pathName, contentSecurityPolicy);
2562
2563
  }
2563
2564
  await invokeAndTransfer('IpcParent.create', {
2564
2565
  method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-management-worker",
3
- "version": "4.52.2",
3
+ "version": "4.52.3",
4
4
  "description": "Webworker for the Extension Management functionality in Lvce Editor.",
5
5
  "keywords": [
6
6
  "web-worker"