diff --git a/CHANGELOG.md b/CHANGELOG.md index 27e4ce5d5..9e889e623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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* diff --git a/src/features.coffee b/src/features.coffee index 1fbcc8950..c633b2f32 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -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