diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index 9b214680ad..75fb6d1635 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.9";} + getVersion () {return "3.3.1";} getAuthor () {return "DevilBro";} @@ -11,7 +11,7 @@ class NotificationSounds { initConstructor () { this.changelog = { - "fixed":[["Settings","Fixed the bug where you couldn't save the muted settings"]] + "fixed":[["Incoming Sound","Maybe this fixes it ¯\\_(ツ)_/¯"]] }; this.patchModules = { @@ -129,7 +129,7 @@ class NotificationSounds { for (var key of ["category","song"]) { settingshtml += `
${key}:
${this.choices[type][key]}
`; } - settingshtml += `
volume:
`; + settingshtml += `
volume:
`; settingshtml += ``; } settingshtml += `

Show unimplemented Sounds

`; @@ -320,7 +320,7 @@ class NotificationSounds { var grabber = e.currentTarget; var track = grabber.parentNode; var slider = track.parentNode; - var input = slider.querySelector(".volumeInput"); + var input = slider.querySelector(BDFDB.dotCN.sliderinput); var bar = slider.querySelector(BDFDB.dotCN.sliderbarfill); var type = slider.getAttribute("type"); @@ -468,7 +468,6 @@ class NotificationSounds { BDFDB.WebModules.patch(instance, "stopRinging", this, {instead: stop}); BDFDB.WebModules.patch(instance._reactInternalFiber.type.prototype, "startRinging", this, {instead: play}); BDFDB.WebModules.patch(instance._reactInternalFiber.type.prototype, "stopRinging", this, {instead: stop}); - BDFDB.WebModules.unpatch(instance._reactInternalFiber.type.prototype, this.patchModules[instancetype], this); } processIncomingCalls (instance, wrapper) {