Ver código fonte

undefined, not null

master
Philipp Hancke 11 anos atrás
pai
commit
cbbd98a177
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      muc.js

+ 1
- 1
muc.js Ver arquivo

@@ -23,7 +23,7 @@ Strophe.addConnectionPlugin('emuc', {
23 23
         }
24 24
 
25 25
         var join = $pres({to: this.myroomjid }).c('x', {xmlns: 'http://jabber.org/protocol/muc'});
26
-        if (password !== null) {
26
+        if (password !== undefined) {
27 27
             join.c('password').t(password);
28 28
         }
29 29
         this.connection.send(join);

Carregando…
Cancelar
Salvar