mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
Fix redirect bug
This commit is contained in:
@@ -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;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user