1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-18 17:38:46 +01:00

fakeUint8Array called forEachIndex with wrong parameters.

Fixes #266
This commit is contained in:
kkapsner 2018-09-18 21:52:15 +02:00
parent e3861e67b4
commit 2271477376

View File

@ -131,7 +131,7 @@
if (!cached){ if (!cached){
var rate = getAudioFakeRate(array, prefs); var rate = getAudioFakeRate(array, prefs);
var rng = randomSupply.getValueRng(rate, window); var rng = randomSupply.getValueRng(rate, window);
forEachIndex(prefs, function(index, i){ forEachIndex(array, prefs, function(index, i){
array[index] = rng(array[index], i); array[index] = rng(array[index], i);
}); });
if (prefs("useAudioCache")){ if (prefs("useAudioCache")){