From 7fff5eaafe46017047ead762f6c68a05e9845338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 25 May 2013 15:57:27 +0300 Subject: [PATCH] Fix duplicate tab detection Internet Explorer 10 being the only browser that implements the standard correctly. --- file/js/be.bastelstu.Chat.litcoffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index 128e3af..343b91b 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -283,7 +283,7 @@ Enable duplicate tab detection. window.localStorage.setItem 'be.bastelstu.chat.session', chatSession $(window).on 'storage', (event) -> if event.originalEvent.key is 'be.bastelstu.chat.session' - if event.originalEvent.newValue isnt chatSession + if parseInt(event.originalEvent.newValue) isnt chatSession showError WCF.Language.get 'chat.error.duplicateTab' Ask for permissions to use Desktop notifications when notifications are activated.