roryeiffe / Spoiler-Block

Google Chrome Extension that filters out search result suggestions that "spoil" or reveal plot elements of the media (shows, movies, books, etc.).
GNU General Public License v3.0
0 stars 3 forks source link

Message Passing for Threshold #50

Closed SerenaChen1 closed 3 years ago

SerenaChen1 commented 3 years ago

Currently we have the message passing implemented for the censor color, and this feature works, as the color of the censor actually updates every time we pick a new color. However, we don't have this implemented for the threshold value yet. We want to do the same thing for the threshold value, so that when the user changes this value, the content pages will warn them about the possibility of spoilers above that percentage.

SerenaChen1 commented 3 years ago

The threshold value is now saved in local storage, so we can fetch it in order to determine whether the warning popup should be shown.