瀏覽代碼

undefined, not null

master
Philipp Hancke 11 年之前
父節點
當前提交
a2916176cb
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      muc.js

+ 1
- 1
muc.js 查看文件

@@ -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);

Loading…
取消
儲存