Don't try to initialize features on nonexistent pages.

This commit is contained in:
ccd0 2015-03-15 00:29:45 -07:00
parent 3f8ff45a54
commit 19ed662208

View File

@ -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]