1
0
Fork 0
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:
kkapsner 2019-03-14 16:51:20 +01:00
parent a9edf45aa8
commit 137c1688ba
7 changed files with 53 additions and 14 deletions

View file

@ -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 (