Bug 1033579 - Add channel to POST calls for Loop to allow different servers based on the channel. r=dmose

This commit is contained in:
Adam Roach [:abr]
2014-10-23 20:37:58 +01:00
parent b3b9796713
commit 522a6992b3
4 changed files with 22 additions and 4 deletions

View File

@@ -232,7 +232,9 @@ loop.Client = (function($) {
this.mozLoop.hawkRequest(this.mozLoop.LOOP_SESSION_TYPE.FXA,
"/calls", "POST", {
calleeId: calleeIds,
callType: callType
callType: callType,
channel: this.mozLoop.appVersionInfo ?
this.mozLoop.appVersionInfo.channel : "unknown"
},
function (err, responseText) {
if (err) {