mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
Use the constructed value in the settings
This commit is contained in:
parent
597f7e30b8
commit
994de512cb
2
docs/_static/settings.js
vendored
2
docs/_static/settings.js
vendored
@ -17,7 +17,7 @@ class Setting {
|
||||
let value = JSON.parse(localStorage.getItem(this.name));
|
||||
this.value = value === null ? this.defaultValue : value;
|
||||
try {
|
||||
this.setValue(value);
|
||||
this.setValue(this.value);
|
||||
} catch (error) {
|
||||
console.error(`Failed to apply setting "${this.name}" With value:`, this.value);
|
||||
console.error(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user