From 2e69878c1be120830841e52e875228971fc87103 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 29 Sep 2016 16:32:44 -0700 Subject: [PATCH] Revert "Don't fire 4chanXInitFinished until JSON Index has loaded." This causes problems if the index fails to load. This reverts commit da1fce66465745cd9ef12f38945f8ce4ffcf06bb. --- src/main/Main.coffee | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 2a2dc5232..5150cd6b4 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -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')