| Index: issue-reporter.js |
| =================================================================== |
| --- a/issue-reporter.js |
| +++ b/issue-reporter.js |
| @@ -398,29 +398,22 @@ |
| let component = uuid[i].toString(16); |
| while (component.length < 4) |
| component = "0" + component; |
| uuidString += component; |
| if (i >= 1 && i <= 4) |
| uuidString += "-"; |
| } |
| - // Passing a sequence to URLSearchParams() constructor only works starting |
| - // with Firefox 53, add values "manually" for now. |
| - let params = new URLSearchParams(); |
| - for (let [param, value] of [ |
| - ["version", 1], |
| - ["guid", uuidString], |
| - ["lang", reportData.getElementsByTagName("adblock-plus")[0] |
| - .getAttribute("locale")] |
| - ]) |
| - { |
| - params.append(param, value); |
| - } |
| - |
| + let params = new URLSearchParams({ |
| + version: 1, |
| + guid: uuidString, |
| + lang: reportData.getElementsByTagName("adblock-plus")[0] |
| + .getAttribute("locale") |
| + }); |
| let url = "https://reports.adblockplus.org/submitReport?" + params; |
| let reportSent = event => |
| { |
| let success = false; |
| let errorMessage = browser.i18n.getMessage( |
| "filters_subscription_lastDownload_connectionError" |
| ); |