mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Don't require desktop notifications for disconnections (#1535)
This commit is contained in:
parent
bb24d2f3e3
commit
9de28f5f00
|
|
@ -509,10 +509,7 @@ function toId() {
|
|||
|
||||
if (showNotification !== false && (self.popups.length || !self.focused) && window.Notification) {
|
||||
self.rooms[''].requestNotifications();
|
||||
var disconnect = new Notification("Disconnected!", {lang: 'en', body: "You have been disconnected from Pokémon Showdown."});
|
||||
disconnect.onclick = function (e) {
|
||||
window.focus();
|
||||
};
|
||||
self.rooms[''].notifyOnce("Disconnected", "You have been disconnected from Pokémon Showdown.", 'disconnected');
|
||||
}
|
||||
|
||||
self.rooms[''].updateFormats();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user