undefined, not null

pull/43/head
Philipp Hancke 11 years ago
parent 9ceaec1378
commit a2916176cb
  1. 2
      muc.js

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

Loading…
Cancel
Save