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:
parent
ae526e4710
commit
f4d09e43ac
@ -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){
|
||||
|
@ -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:
|
||||
-
|
||||
|
Loading…
x
Reference in New Issue
Block a user