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.
- package/package.json +1 -1
- package/surflion.js +7 -2
package/package.json
CHANGED
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
|
|
1741
|
-
|
|
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) => {
|