@remix_labs/hub-client 1.1888.0-dev → 1.1890.0-dev
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/index.js +5 -9
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -441,16 +441,12 @@ class Worker {
|
|
|
441
441
|
return;
|
|
442
442
|
};
|
|
443
443
|
if (globalThis.ThisIsNode) {
|
|
444
|
-
this.worker = globalThis.
|
|
445
|
-
//this.worker = new globalThis.Worker(new URL("./hub-worker.js", import.meta.url));
|
|
444
|
+
this.worker = new globalThis.Worker(new URL("./hub-worker.mjs", import.meta.url));
|
|
446
445
|
} else {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
} else {
|
|
452
|
-
bundle = new URL("/g/hub-worker.js", window.location.href);
|
|
453
|
-
}
|
|
446
|
+
// FIXME: Stopgap solution until we figure out a way to bundle groovebox correctly
|
|
447
|
+
let baseURL = globalThis.GROOVEBOX_URL_PREFIX || "/g";
|
|
448
|
+
|
|
449
|
+
let bundle = new URL(`${baseURL}/hub-worker.js`, window.location.href);
|
|
454
450
|
this.worker = new globalThis.Worker(bundle);
|
|
455
451
|
}
|
|
456
452
|
globalThis.RmxMessagingHub = this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remix_labs/hub-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1890.0-dev",
|
|
4
4
|
"description": "talk to the Hub web worker",
|
|
5
5
|
"main": "node.js",
|
|
6
6
|
"browser": "index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"author": "Remixlabs staff",
|
|
12
12
|
"license": "ISC",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@remix_labs/web-worker-onlymain": "1.
|
|
14
|
+
"@remix_labs/web-worker-onlymain": "1.1890.0-dev"
|
|
15
15
|
},
|
|
16
16
|
"repository": "https://github.com/remixlabs/groovebox.git"
|
|
17
17
|
}
|