Might as well go all the way to fix this.
This commit is contained in:
parent
ab0bc6c43a
commit
2e8146a92f
@ -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*
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user