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:
parent
032bc2e424
commit
0f0f526fd5
8 changed files with 397 additions and 10 deletions
|
@ -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];
|
||||
});
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue