1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Fix bug in webGl parameter faking

Fixes #508
This commit is contained in:
kkapsner 2021-01-03 22:23:46 +01:00
parent e2c5dfc06e
commit 1f1d7052a1
3 changed files with 12 additions and 6 deletions

View file

@ -209,8 +209,8 @@
scope.initializeParameterDefinitions = function(){
function singleFake(originalValue, window, prefs){
let value = parameterFakeTypes[this.type](originalValue, this, window, prefs);
let faked = value === originalValue;
const value = parameterFakeTypes[this.type](originalValue, this, window, prefs);
const faked = value !== originalValue;
this.fake = function(){
return {value, faked};
};