From f49a4b6c8733ba613926de13dfe498ce9303586f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 4 Apr 2013 13:39:44 +0200 Subject: [PATCH] This should fix the 'unhide all' button not clearing threads. #968 --- src/features.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/features.coffee b/src/features.coffee index c539a6b4e..54cafe74d 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -362,7 +362,10 @@ Settings = button.textContent = "Hidden: #{hiddenNum}" $.on button, 'click', -> @textContent = 'Hidden: 0' - $.delete ['hiddenThreads', 'hiddenPosts'] + $.get 'hiddenThreads', boards: {}, (item) -> + for boardID of item.hiddenThreads.boards + localStorage.removeItem "4chan-hide-t-#{boardID}" + $.delete ['hiddenThreads', 'hiddenPosts'] $.after $('input[name="Stubs"]', section).parentNode.parentNode, div export: (now, data) -> unless typeof now is 'number'