surflion-service 1.2.7 → 1.2.9

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 +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "surflion-service",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "",
5
5
  "main": "surflion.js",
6
6
  "scripts": {
package/surflion.js CHANGED
@@ -1457,6 +1457,7 @@ var SurfLion = {
1457
1457
  register: true,
1458
1458
  session_timers: false,
1459
1459
  iceServers: [],
1460
+ contact: sip_uri_
1460
1461
  };
1461
1462
  function createDialerButton(digit) {
1462
1463
  const button = document.createElement('button');
@@ -1737,8 +1738,12 @@ var SurfLion = {
1737
1738
  }
1738
1739
  },
1739
1740
  initSharework: function(address) {
1740
- let useAddress = address ? address : new URL('./shareWork.js',import.meta.url).href
1741
- console.log("new URL('./shareWork.js',import.meta.url)", new URL('./shareWork.js',import.meta.url))
1741
+ let useAddress
1742
+ if(address) {
1743
+ useAddress = address
1744
+ } else {
1745
+ return
1746
+ }
1742
1747
  SurfLion.worker = new SharedWorker(useAddress);
1743
1748
  document.addEventListener("visibilitychange", () => SurfLion.visibilityListen(useAddress));
1744
1749
  SurfLion.worker.port.addEventListener("message", (event) => {