From 044934f5dfe328e02dd0830801aa34a0cfe62edf Mon Sep 17 00:00:00 2001 From: "adamlui@protonmail.com" Date: Wed, 1 May 2024 01:41:52 -0700 Subject: [PATCH] Removed no longer used env flags --- chatgpt.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/chatgpt.js b/chatgpt.js index 5af01f2a4..87c1a5503 100644 --- a/chatgpt.js +++ b/chatgpt.js @@ -22,10 +22,8 @@ localStorage.notifyProps = JSON.stringify({ lastNthAudio: 0 // to prevent immediate repetition of base sound }); -// Init environment flags & functions -const isChromeUserScript = navigator.userAgent.includes('Chrome') && typeof unsafeWindow != 'undefined', - isFFuserScript = navigator.userAgent.includes('Firefox') && typeof unsafeWindow != 'undefined', - isFFtmScript = isFFuserScript && GM_info.scriptHandler == 'Tampermonkey'; +// Init environment flags +const isFFtmScript = isFFuserScript && GM_info.scriptHandler == 'Tampermonkey'; // Define chatgpt.methods const chatgpt = { // eslint-disable-line no-redeclare