From 40f95bf84287dd078e618c959ff334891c65824a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:28:53 +0300 Subject: [PATCH] Fix HypeBot plugin settings not saving --- public/scripts/extensions/hypebot/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/extensions/hypebot/index.js b/public/scripts/extensions/hypebot/index.js index 2fbd66764..a64fe5d9f 100644 --- a/public/scripts/extensions/hypebot/index.js +++ b/public/scripts/extensions/hypebot/index.js @@ -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(); });