1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Changed library functions that may work in both types.

Added helper scripts for webExtension.
This commit is contained in:
kkapsner 2017-06-25 22:22:17 +02:00
parent 6c3b27e7e4
commit 4ea073132d
6 changed files with 190 additions and 97 deletions

View file

@ -4,6 +4,15 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
(function(){
"use strict";
var scope;
if ((typeof exports) !== "undefined"){
scope = exports;
}
else {
window.scope.askForPermission = {};
scope = window.scope.askForPermission;
}
const {parseErrorStack} = require("./callingStack");
// Check canvas appearance
@ -107,7 +116,7 @@
}
}
exports.ask = function({window, type, canvas, errorStack}, {_, prefs}){
scope.ask = function({window, type, canvas, errorStack}, {_, prefs}){
var answer;
var askMode = getAskMode(window, type, _);
var askStatus = askMode.askStatus;