1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-15 22:05:09 -05:00

Ignore undefined device id, for real this time?

This commit is contained in:
Lance Stout 2014-01-27 14:43:28 -08:00
parent 7c2e6bd53e
commit f621166f13
3 changed files with 3 additions and 3 deletions

View File

@ -199,7 +199,7 @@ module.exports = HumanModel.define({
},
registerDevice: function () {
var deviceID = app.state.deviceID;
if (!!deviceID) {
if (!!deviceID && deviceID !== undefined && deviceID !== 'undefined') {
client.otalkRegister(deviceID).then(function () {
client.registerPush('push@push.otalk.im/prod');
}).catch(function (err) {

View File

@ -62,7 +62,7 @@ module.exports = HumanModel.define({
deviceIDReady: {
deps: ['connected', 'deviceID'],
fn: function () {
return (this.connected && this.deviceID);
return (this.connected && !!this.deviceID);
}
}
},

View File

@ -1,6 +1,6 @@
{
"name": "otalk.im",
"version": "0.0.18",
"version": "0.0.19",
"description": "Otalk: WebRTC Enabled XMPP Client, in the Browser",
"repository": {
"type": "git",