@dcl-regenesislabs/bevy-explorer-web 0.1.0-18314117233.commit-737e99d → 0.1.0-18318832911.commit-dd3caa5

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/.env CHANGED
@@ -1 +1 @@
1
- PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18314117233.commit-737e99d"
1
+ PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18318832911.commit-dd3caa5"
package/index.html CHANGED
@@ -101,7 +101,7 @@
101
101
  }
102
102
  </style>
103
103
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
104
- <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18314117233.commit-737e99d";</script>
104
+ <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18318832911.commit-dd3caa5";</script>
105
105
  </head>
106
106
  <body>
107
107
  <div id="header" class="container">
@@ -130,6 +130,6 @@
130
130
  </div>
131
131
  <script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
132
132
  <script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
133
- <script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18314117233.commit-737e99d/main.js"></script>
133
+ <script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18318832911.commit-dd3caa5/main.js"></script>
134
134
  </body>
135
135
  </html>
package/main.js CHANGED
@@ -54,6 +54,7 @@ function hideHeader() {
54
54
  if ("serviceWorker" in navigator) {
55
55
  window.addEventListener("load", () => {
56
56
  const serviceWorkerPath = new URL('./service_worker.js', import.meta.url);
57
+ console.log({ serviceWorkerPath })
57
58
  navigator.serviceWorker
58
59
  .register(serviceWorkerPath)
59
60
  .then((registration) => {
@@ -222,7 +223,8 @@ async function initEngine() {
222
223
 
223
224
  // start asset loader thread
224
225
  await new Promise((resolve, _reject) => {
225
- const assetLoader = new Worker("asset_loader.js", { type: "module" });
226
+ const publicUrl = window.PUBLIC_URL || ".";
227
+ const assetLoader = new Worker(`${publicUrl}/asset_loader.js`, { type: "module" });
226
228
  assetLoader.onmessage = (workerEvent) => {
227
229
  if (workerEvent.data.type === "READY") {
228
230
  assetLoader.postMessage({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl-regenesislabs/bevy-explorer-web",
3
- "version": "0.1.0-18314117233.commit-737e99d",
3
+ "version": "0.1.0-18318832911.commit-dd3caa5",
4
4
  "scripts": {
5
5
  "postinstall": "node ./scripts/prebuild.js"
6
6
  },
@@ -8,6 +8,6 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/bevy-explorer.git"
10
10
  },
11
- "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18314117233.commit-737e99d",
12
- "commit": "737e99dc5971ce42c124a618f7be34267601c2b2"
11
+ "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18318832911.commit-dd3caa5",
12
+ "commit": "dd3caa545cc939425734ba356e83227e04d06eed"
13
13
  }
Binary file