@lvce-editor/renderer-process 16.2.0 → 17.1.0
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.
- package/dist/rendererProcessMain.js +2 -26
- package/package.json +1 -1
|
@@ -9686,27 +9686,7 @@ const commandMap = {
|
|
|
9686
9686
|
'WindowTitle.set': set$1
|
|
9687
9687
|
};
|
|
9688
9688
|
|
|
9689
|
-
const
|
|
9690
|
-
if (typeof location === 'undefined' || typeof document === 'undefined') {
|
|
9691
|
-
return '';
|
|
9692
|
-
}
|
|
9693
|
-
const configElement = document.getElementById('Config');
|
|
9694
|
-
if (!configElement) {
|
|
9695
|
-
return '';
|
|
9696
|
-
}
|
|
9697
|
-
const text = configElement.textContent;
|
|
9698
|
-
if (!text) {
|
|
9699
|
-
return '';
|
|
9700
|
-
}
|
|
9701
|
-
const config = JSON.parse(text);
|
|
9702
|
-
return config[key] || '';
|
|
9703
|
-
};
|
|
9704
|
-
|
|
9705
|
-
const getConfiguredEditorWorkerUrl = () => {
|
|
9706
|
-
return getConfiguredWorkerUrl('editorWorkerUrl');
|
|
9707
|
-
};
|
|
9708
|
-
|
|
9709
|
-
const editorWorkerUrl = getConfiguredEditorWorkerUrl() || `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/editor-worker/dist/editorWorkerMain.js`;
|
|
9689
|
+
const editorWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/editor-worker/dist/editorWorkerMain.js`;
|
|
9710
9690
|
|
|
9711
9691
|
const launchEditorWorker = async port => {
|
|
9712
9692
|
const ipc = await create$A({
|
|
@@ -9729,11 +9709,7 @@ const hydrate$2 = async () => {
|
|
|
9729
9709
|
await promise;
|
|
9730
9710
|
};
|
|
9731
9711
|
|
|
9732
|
-
const
|
|
9733
|
-
return getConfiguredWorkerUrl('extensionHostWorkerUrl');
|
|
9734
|
-
};
|
|
9735
|
-
|
|
9736
|
-
const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/extension-host-worker/dist/extensionHostWorkerMain.js`;
|
|
9712
|
+
const extensionHostWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/extension-host-worker/dist/extensionHostWorkerMain.js`;
|
|
9737
9713
|
|
|
9738
9714
|
const launchExtensionHostWorker = async port => {
|
|
9739
9715
|
const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
|