mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Use unless + is instead of if + isnt
This commit is contained in:
parent
e1dc33511b
commit
cd926813bc
@ -319,7 +319,7 @@ Enable duplicate tab detection.
|
|||||||
window.localStorage.setItem 'be.bastelstu.chat.session', chatSession
|
window.localStorage.setItem 'be.bastelstu.chat.session', chatSession
|
||||||
$(window).on 'storage', (event) ->
|
$(window).on 'storage', (event) ->
|
||||||
if event.originalEvent.key is 'be.bastelstu.chat.session'
|
if event.originalEvent.key is 'be.bastelstu.chat.session'
|
||||||
showError WCF.Language.get 'chat.error.duplicateTab' if parseInt(event.originalEvent.newValue) isnt chatSession
|
showError WCF.Language.get 'chat.error.duplicateTab' unless parseInt(event.originalEvent.newValue) is chatSession
|
||||||
|
|
||||||
Ask for permissions to use Desktop notifications when notifications are activated.
|
Ask for permissions to use Desktop notifications when notifications are activated.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user