Fix HypeBot plugin settings not saving

This commit is contained in:
Cohee 2023-09-07 22:28:53 +03:00
parent 89705391d1
commit 40f95bf842
1 changed files with 2 additions and 0 deletions

View File

@ -191,11 +191,13 @@ jQuery(() => {
settings.enabled = $('#hypebot_enabled').prop('checked');
hypeBotBar.toggle(settings.enabled);
abortController?.abort();
Object.assign(extension_settings.hypebot, settings);
saveSettingsDebounced();
});
$('#hypebot_name').val(settings.name).on('input', () => {
settings.name = String($('#hypebot_name').val());
Object.assign(extension_settings.hypebot, settings);
saveSettingsDebounced();
});