Might as well go all the way to fix this.

This commit is contained in:
Nicolas Stepien 2013-04-08 09:52:29 +02:00
parent ab0bc6c43a
commit 2e8146a92f
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
- Fix Thread Hiding initialization error, you'll have to clear all hidden threads in the settings window if you keep getting this bug.
- Fix Thread Hiding initialization error.
# 3.0.0 - *2013-04-07*

View File

@ -1097,7 +1097,12 @@ ThreadHiding =
hiddenThreads = ThreadHiding.db.get
boardID: g.BOARD.ID
defaultValue: {}
hiddenThreadsOnCatalog = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
# XXX tmp fix
try
hiddenThreadsOnCatalog = JSON.parse(localStorage.getItem "4chan-hide-t-#{g.BOARD}") or {}
catch e
localStorage.setItem "4chan-hide-t-#{g.BOARD}", JSON.stringify {}
return ThreadHiding.syncCatalog()
# Add threads that were hidden in the catalog.
for threadID of hiddenThreadsOnCatalog