1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix duplicate tab detection

Internet Explorer 10 being the only browser that implements the standard correctly.
This commit is contained in:
Tim Düsterhus 2013-05-25 15:57:27 +03:00
parent 9e30cb66e7
commit 7fff5eaafe

View File

@ -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.