@lvce-editor/renderer-process 9.7.0 → 9.8.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 +3 -21
- package/package.json +1 -1
|
@@ -917,24 +917,7 @@ const getModule$1 = method => {
|
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
919
|
|
|
920
|
-
const
|
|
921
|
-
if (typeof location === 'undefined' || typeof document === 'undefined') {
|
|
922
|
-
return false;
|
|
923
|
-
}
|
|
924
|
-
const configElement = document.getElementById('Config');
|
|
925
|
-
if (!configElement) {
|
|
926
|
-
return false;
|
|
927
|
-
}
|
|
928
|
-
const text = configElement.textContent;
|
|
929
|
-
if (!text) {
|
|
930
|
-
return false;
|
|
931
|
-
}
|
|
932
|
-
const config = JSON.parse(text);
|
|
933
|
-
const result = config[key];
|
|
934
|
-
return result;
|
|
935
|
-
};
|
|
936
|
-
|
|
937
|
-
const shouldLaunchMultipleWorkers = hasFlag('prelaunchWorkers');
|
|
920
|
+
const shouldLaunchMultipleWorkers = true;
|
|
938
921
|
|
|
939
922
|
const ipcs = Object.create(null);
|
|
940
923
|
const set$6 = (name, ipc) => {
|
|
@@ -954,7 +937,7 @@ const create$L = async ({
|
|
|
954
937
|
method,
|
|
955
938
|
...options
|
|
956
939
|
}) => {
|
|
957
|
-
if (
|
|
940
|
+
if (options.name && has(options.name)) {
|
|
958
941
|
if (!options.id) {
|
|
959
942
|
throw new Error('id is required');
|
|
960
943
|
}
|
|
@@ -1581,10 +1564,9 @@ const hydrate$1 = async () => {
|
|
|
1581
1564
|
};
|
|
1582
1565
|
|
|
1583
1566
|
const launchWorkers = () => {
|
|
1584
|
-
|
|
1567
|
+
{
|
|
1585
1568
|
return Promise.all([hydrate$4(), hydrate$3(), hydrate$1(), hydrate$2()]);
|
|
1586
1569
|
}
|
|
1587
|
-
return hydrate$4();
|
|
1588
1570
|
};
|
|
1589
1571
|
|
|
1590
1572
|
const Alert = 'alert';
|