Moved console methods out of the root of the object
This commit is contained in:
4
src/js/controls.js
vendored
4
src/js/controls.js
vendored
@ -542,13 +542,13 @@ const controls = {
|
||||
|
||||
// Unsupported value
|
||||
if (!this.options[setting].includes(value)) {
|
||||
this.warn(`Unsupported value of '${value}' for ${setting}`);
|
||||
this.console.warn(`Unsupported value of '${value}' for ${setting}`);
|
||||
return;
|
||||
}
|
||||
|
||||
// Disabled value
|
||||
if (!this.config[setting].options.includes(value)) {
|
||||
this.warn(`Disabled value of '${value}' for ${setting}`);
|
||||
this.console.warn(`Disabled value of '${value}' for ${setting}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user