Bug 1050314 Loop standalone client is broken in Chrome due to use of ES6 functions. r=dmose

This commit is contained in:
Mark Banner 2014-08-08 09:28:48 +01:00
parent 2311022dde
commit de29cc5e29
2 changed files with 4 additions and 4 deletions

View File

@ -285,7 +285,7 @@ loop.webapp = (function($, _, OT, webL10n) {
// XXX For now, we assume both audio and video as there is no
// other option to select (bug 1048333)
this._client.requestCallInfo(this._conversation.get("loopToken"), "audio-video",
(err, sessionData) => {
function(err, sessionData) {
if (err) {
switch (err.errno) {
// loop-server sends 404 + INVALID_TOKEN (errno 105) whenever a token is
@ -302,7 +302,7 @@ loop.webapp = (function($, _, OT, webL10n) {
return;
}
this._conversation.outgoing(sessionData);
});
}.bind(this));
}
},

View File

@ -285,7 +285,7 @@ loop.webapp = (function($, _, OT, webL10n) {
// XXX For now, we assume both audio and video as there is no
// other option to select (bug 1048333)
this._client.requestCallInfo(this._conversation.get("loopToken"), "audio-video",
(err, sessionData) => {
function(err, sessionData) {
if (err) {
switch (err.errno) {
// loop-server sends 404 + INVALID_TOKEN (errno 105) whenever a token is
@ -302,7 +302,7 @@ loop.webapp = (function($, _, OT, webL10n) {
return;
}
this._conversation.outgoing(sessionData);
});
}.bind(this));
}
},