surflion-service 1.2.4 → 1.2.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/surflion.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surflion-service",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "",
5
5
  "main": "surflion.js",
6
6
  "scripts": {
package/surflion.js CHANGED
@@ -1737,7 +1737,7 @@ var SurfLion = {
1737
1737
  }
1738
1738
  },
1739
1739
  initSharework: function(address) {
1740
- let useAddress = address ? address : new URL('./shareWork.js')
1740
+ let useAddress = address ? address : new URL('./shareWork.js',import.meta.url)
1741
1741
  SurfLion.worker = new SharedWorker(useAddress);
1742
1742
  document.addEventListener("visibilitychange", () => SurfLion.visibilityListen(useAddress));
1743
1743
  SurfLion.worker.port.addEventListener("message", (event) => {