mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Reduced direct dependency on browser.xxx APIs
This commit is contained in:
parent
a9edf45aa8
commit
137c1688ba
7 changed files with 53 additions and 14 deletions
|
@ -17,6 +17,7 @@
|
|||
const getWrapped = require("sdk/getWrapped");
|
||||
const logging = require("./logging");
|
||||
const settings = require("./settings");
|
||||
const extension = require("./extension");
|
||||
|
||||
setRandomSupply(randomSupplies.nonPersistent);
|
||||
var apiNames = Object.keys(changedFunctions);
|
||||
|
@ -176,7 +177,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
let extensionID = browser.extension.getURL("");
|
||||
let extensionID = extension.extensionID;
|
||||
scope.intercept = function intercept({subject: window}, {check, checkStack, ask, notify, prefs}){
|
||||
function getDataURL(object, prefs){
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue