1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 21:00:23 +01:00

arrayFake did not correctly compute if values were faked

Fixes #531
This commit is contained in:
kkapsner 2021-06-12 00:58:37 +02:00
parent 277bef1227
commit 13203a905d

View File

@ -221,7 +221,7 @@
let fakedValue = []; let fakedValue = [];
for (let i = 0; i < originalValue.length; i += 1){ for (let i = 0; i < originalValue.length; i += 1){
fakedValue[i] = parameterFakeTypes[this.type](originalValue[i], this, window, prefs); fakedValue[i] = parameterFakeTypes[this.type](originalValue[i], this, window, prefs);
faked |= originalValue[i] === fakedValue[i]; faked = faked || originalValue[i] !== fakedValue[i];
originalValue[i] = fakedValue[i]; originalValue[i] = fakedValue[i];
} }
this.fake = function(originalValue){ this.fake = function(originalValue){