Can only clear 4chan catalog hidden threads from 4chan.

This commit is contained in:
ccd0 2018-09-19 14:50:52 -07:00
parent 23c764347b
commit 9881ed30fa

View File

@ -199,7 +199,7 @@ Settings =
$.on button, 'click', ->
@textContent = 'Hidden: 0'
$.get 'hiddenThreads', {}, ({hiddenThreads}) ->
if $.hasStorage
if $.hasStorage and Site.software is 'yotsuba'
for boardID of hiddenThreads.boards
localStorage.removeItem "4chan-hide-t-#{boardID}"
($.delete ['hiddenThreads', 'hiddenPosts'])