surflion-service 1.2.7 → 1.2.8
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/package.json +1 -1
- package/surflion.js +6 -2
package/package.json
CHANGED
package/surflion.js
CHANGED
|
@@ -1737,8 +1737,12 @@ var SurfLion = {
|
|
|
1737
1737
|
}
|
|
1738
1738
|
},
|
|
1739
1739
|
initSharework: function(address) {
|
|
1740
|
-
let useAddress
|
|
1741
|
-
|
|
1740
|
+
let useAddress
|
|
1741
|
+
if(address) {
|
|
1742
|
+
useAddress = address
|
|
1743
|
+
} else {
|
|
1744
|
+
return
|
|
1745
|
+
}
|
|
1742
1746
|
SurfLion.worker = new SharedWorker(useAddress);
|
|
1743
1747
|
document.addEventListener("visibilitychange", () => SurfLion.visibilityListen(useAddress));
|
|
1744
1748
|
SurfLion.worker.port.addEventListener("message", (event) => {
|