Fix regression that broke favicon turning red on thread archival/404. #2190

This commit is contained in:
ccd0 2019-01-25 22:20:22 -08:00
parent a47449c834
commit f3c80c7a48

View File

@ -61,6 +61,7 @@ Unread =
Unread.readCount++ for ID in @posts.keys when +ID <= Unread.lastReadPost
$.one d, '4chanXInitFinished', Unread.ready
$.on d, 'PostsInserted', Unread.onUpdate
$.on d, 'ThreadUpdate', (e) -> Unread.update() if e.detail[404]
ready: ->
Unread.scroll() if Conf['Remember Last Read Post'] and Conf['Scroll to Last Read Post']