Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #1722, include the add-on version with all GA events
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Oct 11, 2016
1 parent 0a567b4 commit 7ac5b22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addon/lib/req.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { Request } = require("sdk/request");
const user = require("./user");
const self = require("sdk/self");

exports.request = function (url, options) {
options.method = options.method || "get";
Expand Down Expand Up @@ -60,6 +61,9 @@ exports.sendEvent = function (action, label, options) {
}
}
}
options = options || {};
options.applicationName = "firefox";
options.applicationVersion = self.version;
console.info(`sendEvent ${event}/${action}/${label || 'none'} ${options ? JSON.stringify(options) : ""}`);
exports.request(`${main.getBackend()}/event`, {
method: "POST",
Expand Down

0 comments on commit 7ac5b22

Please sign in to comment.