Selaa lähdekoodia

Fixes 'undefined' default SIP number.

master
paweldomas 10 vuotta sitten
vanhempi
commit
b7a229941c
2 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 4
    1
      app.js
  2. 1
    0
      config.js

+ 4
- 1
app.js Näytä tiedosto

@@ -1516,10 +1516,13 @@ $(document).bind("selectedendpointchanged", function(event, userJid) {
1516 1516
 
1517 1517
 function callSipButtonClicked()
1518 1518
 {
1519
+    var defaultNumber
1520
+        = config.defaultSipNumber ? config.defaultSipNumber : '';
1521
+
1519 1522
     messageHandler.openTwoButtonDialog(null,
1520 1523
         '<h2>Enter SIP number</h2>' +
1521 1524
             '<input id="sipNumber" type="text"' +
1522
-            ' value="' + config.defaultSipNumber + '" autofocus>',
1525
+            ' value="' + defaultNumber + '" autofocus>',
1523 1526
         false,
1524 1527
         "Dial",
1525 1528
         function (e, v, m, f) {

+ 1
- 0
config.js Näytä tiedosto

@@ -12,6 +12,7 @@ var config = {
12 12
     useNicks: false,
13 13
     bosh: '//jitsi-meet.example.com/http-bind', // FIXME: use xep-0156 for that
14 14
     clientNode: 'http://jitsi.org/jitsimeet', // The name of client node advertised in XEP-0115 'c' stanza
15
+    //defaultSipNumber: '', // Default SIP number
15 16
     desktopSharing: 'ext', // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable.
16 17
     chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension
17 18
     desktopSharingSources: ['screen', 'window'],

Loading…
Peruuta
Tallenna