mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 04:26:35 +02:00
Fixed bug with "block" mode
window and audio API were always blocked when using any of the "block ..." modes Fixes #243
This commit is contained in:
parent
e0729480fb
commit
aa8b202545
5 changed files with 12 additions and 10 deletions
|
@ -211,7 +211,7 @@
|
|||
if (checkStack(error.stack)){
|
||||
return {allow: true, original, window};
|
||||
}
|
||||
var funcStatus = changedFunction.getStatus(this, siteStatus);
|
||||
var funcStatus = changedFunction.getStatus(this, siteStatus, prefs);
|
||||
|
||||
function notifyCallback(messageId){
|
||||
notify({
|
||||
|
@ -273,7 +273,7 @@
|
|||
if (siteStatus.mode !== "allow"){
|
||||
apiNames.forEach(function(name){
|
||||
var changedFunction = changedFunctions[name];
|
||||
var functionStatus = changedFunction.getStatus(undefined, siteStatus);
|
||||
var functionStatus = changedFunction.getStatus(undefined, siteStatus, prefs);
|
||||
logging.verbose("status for", name, ":", functionStatus);
|
||||
if (functionStatus.active){
|
||||
(
|
||||
|
@ -312,7 +312,7 @@
|
|||
});
|
||||
changedGetters.forEach(function(changedGetter){
|
||||
const name = changedGetter.name;
|
||||
var functionStatus = changedGetter.getStatus(undefined, siteStatus);
|
||||
var functionStatus = changedGetter.getStatus(undefined, siteStatus, prefs);
|
||||
logging.verbose("status for", changedGetter, ":", functionStatus);
|
||||
if (functionStatus.active){
|
||||
changedGetter.objectGetters.forEach(function(objectGetter){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue