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

added {empty}, {false} and {undefined} to webGL preference parameters

(i.e. VENDOR, RENDERER, UNMASKED_VENDOR_WEBGL and
UNMASKED_RENDERER_WEBGL)

For #508
This commit is contained in:
kkapsner 2021-01-02 11:05:52 +01:00
parent ae526e4710
commit f4d09e43ac
2 changed files with 9 additions and 1 deletions

View File

@ -129,6 +129,14 @@
const parameterFakeTypes = {
preference: function(originalValue, definition, window, prefs){
const settingValue = prefs(definition.preferenceName) || originalValue;
switch (settingValue){
case "{undefined}":
return undefined;
case "{false}":
return false;
case "{empty}":
return "";
}
return settingValue;
},
decimal: function(originalValue, definition, window){

View File

@ -3,7 +3,7 @@ Version 1.5:
-
new features:
-
- added {empty}, {false} and {undefined} to webGL preference parameters (i.e. VENDOR, RENDERER, UNMASKED_VENDOR_WEBGL and UNMASKED_RENDERER_WEBGL)
fixes:
-