From bc51dd54d5519da125e520cc32d29e81bab017a9 Mon Sep 17 00:00:00 2001 From: adamlui Date: Wed, 1 May 2024 08:42:21 +0000 Subject: [PATCH] =?UTF-8?q?Removed=20no=20longer=20used=20env=20flags=20?= =?UTF-8?q?=E2=86=9E=20[auto-sync=20from=20`KudoAI/chatgpt.js`]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starters/chrome/extension/lib/chatgpt.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/starters/chrome/extension/lib/chatgpt.js b/starters/chrome/extension/lib/chatgpt.js index bd7aff6ec..149b534cb 100644 --- a/starters/chrome/extension/lib/chatgpt.js +++ b/starters/chrome/extension/lib/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