Fix exception when Thread Watcher keybind pressed on Tinyboard/vichan sites.
This commit is contained in:
parent
8688bfc955
commit
093bbc9905
@ -88,7 +88,7 @@ Keybinds =
|
|||||||
when Conf['Update']
|
when Conf['Update']
|
||||||
switch g.VIEW
|
switch g.VIEW
|
||||||
when 'thread'
|
when 'thread'
|
||||||
return unless Conf['Thread Updater']
|
return unless ThreadUpdater.enabled
|
||||||
ThreadUpdater.update()
|
ThreadUpdater.update()
|
||||||
when 'index'
|
when 'index'
|
||||||
return unless Conf['JSON Index'] and g.BOARD.ID isnt 'f'
|
return unless Conf['JSON Index'] and g.BOARD.ID isnt 'f'
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
ThreadUpdater =
|
ThreadUpdater =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW isnt 'thread' or !Conf['Thread Updater']
|
return if g.VIEW isnt 'thread' or !Conf['Thread Updater']
|
||||||
|
@enabled = true
|
||||||
|
|
||||||
# Chromium won't play audio created in an inactive tab until the tab has been focused, so set it up now.
|
# Chromium won't play audio created in an inactive tab until the tab has been focused, so set it up now.
|
||||||
# XXX Sometimes the loading stalls in Firefox, esp. when opening in private browsing window followed by normal window.
|
# XXX Sometimes the loading stalls in Firefox, esp. when opening in private browsing window followed by normal window.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user