1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-05-29 09:28:06 +02:00

Moved "use strict" to be ECMA 2016 compliant.

Fixes #80.
This commit is contained in:
kkapsner 2016-10-31 16:43:49 +01:00
parent dc98a92e8f
commit 26dcc31f5b

View File

@ -2,14 +2,15 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function(){
"use strict";
var URL = require("sdk/url").URL;
const {parseErrorStack} = require("./callingStack");
var tabUtils = require("sdk/tabs/utils");
exports.notify = function({url, errorStack, messageId}, {lists, notificationPref, _, browser, window}){
"use strict";
var callingStackMsg = parseErrorStack(errorStack);
var contentURL = new URL(url);
@ -121,4 +122,5 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
}
return notification;
}
};
};
}());