1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-31 09:01:56 +01:00

Audio cache could break readout

This commit is contained in:
kkapsner 2019-05-22 10:06:11 +02:00
parent 32fab79e09
commit 92ff2ff5d4
2 changed files with 5 additions and 4 deletions

View File

@ -119,8 +119,8 @@
array[index] = value;
});
if (prefs("useAudioCache")){
floatCache[hash] = new window.Float32Array(array);
floatCache[hashing(array)] = new window.Float32Array(array);
floatCache[hash] = new array.constructor(array);
floatCache[hashing(array)] = floatCache[hash];
}
}
else {
@ -143,8 +143,8 @@
array[index] = rng(array[index], i);
});
if (prefs("useAudioCache")){
intCache[hash] = new window.Uint8Array(array);
intCache[hashing(array)] = new window.Uint8Array(array);
intCache[hash] = new array.constructor(array);
intCache[hashing(array)] = intCache[hash];
}
}
else {

View File

@ -26,6 +26,7 @@ Version 0.5.9:
- improved general performance when stack list is disabled
- preventing double interception (increased performance and reduced detectability)
- detection over navigator and DOMRect getters was possible
- audio cache could break readout
known issues:
- if a data URL is blocked the page action button does not appear