From a4e1d8dff3b13da62314ea033cfdb9350cf28f0b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 13 Feb 2019 13:35:30 +0100 Subject: [PATCH] Update NotificationSounds.plugin.js --- Plugins/NotificationSounds/NotificationSounds.plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index a5f2fe95a8..445a3e77bd 100644 --- a/Plugins/NotificationSounds/NotificationSounds.plugin.js +++ b/Plugins/NotificationSounds/NotificationSounds.plugin.js @@ -3,7 +3,7 @@ class NotificationSounds { getName () {return "NotificationSounds";} - getVersion () {return "3.2.7";} + getVersion () {return "3.2.8";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class NotificationSounds { initConstructor () { this.changelog = { - "improved":[["Mention/DM sound","You can now choose whether you want mention/dm sound to play or not, when the channel is open and discord is focused. To change it 'Mute when Channel focused' in the plugin settings for the song type"]] + "fixed":[["Settings","Fixed the bug where you couldn't save the focused/muted settings"]] }; this.patchModules = { @@ -166,12 +166,12 @@ class NotificationSounds { BDFDB.addEventListener(this, settingspanel, "click", ".mute-checkbox", e => { var type = e.currentTarget.parentElement.getAttribute("type"); this.choices[type].mute = e.currentTarget.checked; - this.saveChoice(type, choice, false); + this.saveChoice(type, false); }); BDFDB.addEventListener(this, settingspanel, "click", ".mutefocus-checkbox", e => { var type = e.currentTarget.parentElement.getAttribute("type"); this.choices[type].focus = e.currentTarget.checked; - this.saveChoice(type, choice, false); + this.saveChoice(type, false); }); BDFDB.addEventListener(this, settingspanel, "click", "#input-unimplemented", e => { BDFDB.toggleEles(settingspanel.querySelectorAll(".unimplemented"), e.currentTarget.checked);