mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-18 09:28:52 +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 = {
|
const parameterFakeTypes = {
|
||||||
preference: function(originalValue, definition, window, prefs){
|
preference: function(originalValue, definition, window, prefs){
|
||||||
const settingValue = prefs(definition.preferenceName) || originalValue;
|
const settingValue = prefs(definition.preferenceName) || originalValue;
|
||||||
|
switch (settingValue){
|
||||||
|
case "{undefined}":
|
||||||
|
return undefined;
|
||||||
|
case "{false}":
|
||||||
|
return false;
|
||||||
|
case "{empty}":
|
||||||
|
return "";
|
||||||
|
}
|
||||||
return settingValue;
|
return settingValue;
|
||||||
},
|
},
|
||||||
decimal: function(originalValue, definition, window){
|
decimal: function(originalValue, definition, window){
|
||||||
|
@ -3,7 +3,7 @@ Version 1.5:
|
|||||||
-
|
-
|
||||||
|
|
||||||
new features:
|
new features:
|
||||||
-
|
- added {empty}, {false} and {undefined} to webGL preference parameters (i.e. VENDOR, RENDERER, UNMASKED_VENDOR_WEBGL and UNMASKED_RENDERER_WEBGL)
|
||||||
|
|
||||||
fixes:
|
fixes:
|
||||||
-
|
-
|
||||||
|
Loading…
x
Reference in New Issue
Block a user