Fix redirect bug

This commit is contained in:
Lawrence Hook
2022-01-24 21:07:49 -05:00
parent 1a95672372
commit e01be49e2f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -14,14 +14,14 @@ const cache = {
redirectUrl: null,
};
browser.storage.local.get(cache, setting => {
Object.entries(setting).forEach((key, val) => {
Object.entries(setting).forEach(([key, val]) => {
cache[key] = val;
})
});
// Listen for changes to cached values.
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
request && Object.entries(cache).forEach((key, val) => {
request && Object.entries(cache).forEach(([key, val]) => {
cache[key] = request[key] ?? val;
});
});
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Stop the YouTube rabbit hole. Customize YouTube's user interface to be less engaging.",
"homepage_url": "https://github.com/lawrencehook/remove-youtube-suggestions",
"manifest_version": 2,
"version": "4.1.7",
"version": "4.1.8",
"icons": {
"16": "images/16.png",