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:
parent
7c2e6bd53e
commit
f621166f13
@ -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) {
|
||||
|
@ -62,7 +62,7 @@ module.exports = HumanModel.define({
|
||||
deviceIDReady: {
|
||||
deps: ['connected', 'deviceID'],
|
||||
fn: function () {
|
||||
return (this.connected && this.deviceID);
|
||||
return (this.connected && !!this.deviceID);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user