Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
AND to OR
Browse files Browse the repository at this point in the history
  • Loading branch information
raikasdev committed Nov 23, 2022
1 parent 6e2fa17 commit 8c50094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions chrome/m4redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions src/m4redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c50094

Please sign in to comment.