Revert "Don't fire 4chanXInitFinished until JSON Index has loaded."
This causes problems if the index fails to load. This reverts commit da1fce66465745cd9ef12f38945f8ce4ffcf06bb.
This commit is contained in:
parent
b333936bf1
commit
2e69878c1b
@ -261,15 +261,11 @@ Main =
|
||||
new Notice 'warning', msg
|
||||
|
||||
# Parse HTML or skip it and start building from JSON.
|
||||
unless Index.root
|
||||
Main.initThread()
|
||||
else if Index.root.firstElementChild and doc.contains(Index.root)
|
||||
unless Conf['JSON Index'] and g.VIEW is 'index'
|
||||
Main.initThread()
|
||||
else
|
||||
Main.expectInitFinished = true
|
||||
$.event '4chanXInitFinished'
|
||||
else
|
||||
$.one d, 'PostsInserted', ->
|
||||
Main.expectInitFinished = true
|
||||
$.event '4chanXInitFinished'
|
||||
|
||||
initThread: ->
|
||||
if (board = $ '.board')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user