1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 03:56:26 +02:00

Added protection for audio API

This commit is contained in:
kkapsner 2018-06-16 00:22:31 +02:00
parent 032bc2e424
commit 0f0f526fd5
8 changed files with 397 additions and 10 deletions

View file

@ -17,6 +17,7 @@
const logging = require("./logging");
const {copyCanvasToWebgl} = require("./webgl");
const getWrapped = require("sdk/getWrapped");
const modifiedAudioAPI = require("./modifiedAudioAPI");
var randomSupply = null;
@ -156,6 +157,7 @@
scope.setRandomSupply = function(supply){
randomSupply = supply;
modifiedAudioAPI.setRandomSupply(supply);
};
var canvasContextType = new WeakMap();
// changed functions and their fakes
@ -441,4 +443,7 @@
}
}
};
Object.keys(modifiedAudioAPI.changedFunctions).forEach(function(key){
scope.changedFunctions[key] = modifiedAudioAPI.changedFunctions[key];
});
}());