From 8c50094f47c9d41586c9c201f6517531d4705e95 Mon Sep 17 00:00:00 2001 From: raikasdev Date: Wed, 23 Nov 2022 21:25:17 +0200 Subject: [PATCH] AND to OR --- chrome/m4redirect.js | 5 +++-- src/m4redirect.js | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/chrome/m4redirect.js b/chrome/m4redirect.js index 2bfb672..155f954 100644 --- a/chrome/m4redirect.js +++ b/chrome/m4redirect.js @@ -32,9 +32,10 @@ if (MASTODON_DIV) { // Lets first parse some generic URLs out of the way // For example: /explore -> /home // Using switch case if there comes more pages that this should be done to + console.log(item); if ( - item.redirectExplore == null && - item.redirectExplore == "true" && + item.redirectExplore == null || + item.redirectExplore == "true" || item.redirectExplore === true ) { switch (window.location.pathname) { diff --git a/src/m4redirect.js b/src/m4redirect.js index 2bfb672..155f954 100644 --- a/src/m4redirect.js +++ b/src/m4redirect.js @@ -32,9 +32,10 @@ if (MASTODON_DIV) { // Lets first parse some generic URLs out of the way // For example: /explore -> /home // Using switch case if there comes more pages that this should be done to + console.log(item); if ( - item.redirectExplore == null && - item.redirectExplore == "true" && + item.redirectExplore == null || + item.redirectExplore == "true" || item.redirectExplore === true ) { switch (window.location.pathname) {