From 19ed662208fe7e14ab6e24390e53a965dbd47cc9 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 15 Mar 2015 00:29:45 -0700 Subject: [PATCH] Don't try to initialize features on nonexistent pages. --- src/General/Main.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/General/Main.coffee b/src/General/Main.coffee index e31db4004..035e7ee5a 100755 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -20,6 +20,8 @@ Main = 'archive' else 'index' + return if g.VIEW is 'catalog' and g.BOARD.ID is 'f' + return if g.VIEW is 'archive' and g.BOARD.ID in ['b', 'f'] if g.VIEW is 'thread' g.THREADID = +pathname[3]