Skip to content

Commit

Permalink
fix: checkerV2
Browse files Browse the repository at this point in the history
  • Loading branch information
feildmaster authored Apr 26, 2024
1 parent 35c7614 commit 5954116
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/checkerV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
if (!sessionStorage.getItem(key)) {
sessionStorage.setItem(key, '1'); // Set instantly to prevent multiple alerts happening
const message = "Looks like you don't have UnderScript installed, or you deactivated it! In order for plugins to work, you need to have it up and running. Until then, the features of this userscript will simply not work. Thank you for your understanding.";

let alerted = true;

if (window.SimpleToast) {
SimpleToast({
title: 'Missing Requirements',
Expand All @@ -27,10 +26,8 @@
}],
});
} else {
alerted = false;
sessionStorage.removeItem(key)
}

if (!alerted) sessionStorage.removeItem(key);
}

throw new Error(`${pluginName}: UnderScript required`);
Expand Down

0 comments on commit 5954116

Please sign in to comment.