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
Родитель 8bd6bf6322
Коммит b73d560275
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

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

Просмотреть файл

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