@lvce-editor/extension-management-worker 4.87.0 → 4.88.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.
|
@@ -1297,6 +1297,9 @@ const logError = () => {
|
|
|
1297
1297
|
// handled by renderer worker
|
|
1298
1298
|
};
|
|
1299
1299
|
const handleMessage = event => {
|
|
1300
|
+
if (event.data === 'ready') {
|
|
1301
|
+
return Promise.resolve();
|
|
1302
|
+
}
|
|
1300
1303
|
const actualRequiresSocket = event?.target?.requiresSocket || requiresSocket;
|
|
1301
1304
|
const actualExecute = event?.target?.execute || execute;
|
|
1302
1305
|
return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
|
|
@@ -2213,7 +2216,7 @@ const parseDirective = directive => {
|
|
|
2213
2216
|
const getWorkerUrls = absolutePath => {
|
|
2214
2217
|
const applicationUrl = new URL(getOrigin());
|
|
2215
2218
|
const workerUrl = new URL(absolutePath, applicationUrl);
|
|
2216
|
-
if (workerUrl.protocol === 'lvce:') {
|
|
2219
|
+
if (workerUrl.protocol === 'lvce:' || workerUrl.protocol === 'lvce-oss:') {
|
|
2217
2220
|
return {
|
|
2218
2221
|
assetSource: new URL('./', workerUrl).href,
|
|
2219
2222
|
origin: applicationUrl.origin
|