mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +01:00
parent
dc98a92e8f
commit
26dcc31f5b
@ -2,14 +2,15 @@
|
|||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
/* 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
|
* 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/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
(function(){
|
||||||
|
"use strict";
|
||||||
|
|
||||||
var URL = require("sdk/url").URL;
|
var URL = require("sdk/url").URL;
|
||||||
const {parseErrorStack} = require("./callingStack");
|
const {parseErrorStack} = require("./callingStack");
|
||||||
|
|
||||||
var tabUtils = require("sdk/tabs/utils");
|
var tabUtils = require("sdk/tabs/utils");
|
||||||
exports.notify = function({url, errorStack, messageId}, {lists, notificationPref, _, browser, window}){
|
exports.notify = function({url, errorStack, messageId}, {lists, notificationPref, _, browser, window}){
|
||||||
"use strict";
|
|
||||||
var callingStackMsg = parseErrorStack(errorStack);
|
var callingStackMsg = parseErrorStack(errorStack);
|
||||||
|
|
||||||
var contentURL = new URL(url);
|
var contentURL = new URL(url);
|
||||||
@ -122,3 +123,4 @@ exports.notify = function({url, errorStack, messageId}, {lists, notificationPref
|
|||||||
return notification;
|
return notification;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
}());
|
Loading…
x
Reference in New Issue
Block a user