mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-30 06:43:02 -05:00
Don't require desktop notifications for disconnections (#1535)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user