mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-18 15:15:48 +02:00
Rewrite sound notification hook to be hopefully more reliable
This commit is contained in:
parent
d5c3ea0862
commit
8c0d306823
@ -426,13 +426,9 @@
|
|||||||
//
|
//
|
||||||
// Block: Hook into the notification sound effect.
|
// Block: Hook into the notification sound effect.
|
||||||
//
|
//
|
||||||
(function(){
|
HTMLAudioElement.prototype.play = prependToFunction(HTMLAudioElement.prototype.play, function(){
|
||||||
let soundEle = document.getElementById("update-sound");
|
return $TDX.muteNotifications || $TDX.hasCustomNotificationSound;
|
||||||
|
});
|
||||||
soundEle.play = prependToFunction(soundEle.play, function(){
|
|
||||||
return $TDX.muteNotifications || $TDX.hasCustomNotificationSound;
|
|
||||||
});
|
|
||||||
})();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block: Update highlighted column and tweet for context menu and other functionality.
|
// Block: Update highlighted column and tweet for context menu and other functionality.
|
||||||
|
Loading…
Reference in New Issue
Block a user