mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 01:17:39 +01:00
Fix HypeBot plugin settings not saving
This commit is contained in:
parent
8c00f38a1f
commit
92ab17b58b
@ -191,11 +191,13 @@ jQuery(() => {
|
|||||||
settings.enabled = $('#hypebot_enabled').prop('checked');
|
settings.enabled = $('#hypebot_enabled').prop('checked');
|
||||||
hypeBotBar.toggle(settings.enabled);
|
hypeBotBar.toggle(settings.enabled);
|
||||||
abortController?.abort();
|
abortController?.abort();
|
||||||
|
Object.assign(extension_settings.hypebot, settings);
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#hypebot_name').val(settings.name).on('input', () => {
|
$('#hypebot_name').val(settings.name).on('input', () => {
|
||||||
settings.name = String($('#hypebot_name').val());
|
settings.name = String($('#hypebot_name').val());
|
||||||
|
Object.assign(extension_settings.hypebot, settings);
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user