Skip to content

Commit

Permalink
Removed no longer used env flags
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed May 1, 2024
1 parent 4a08c11 commit 044934f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Check failure on line 26 in chatgpt.js

View workflow job for this annotation

GitHub Actions / eslint

'isFFuserScript' is not defined

// Define chatgpt.methods
const chatgpt = { // eslint-disable-line no-redeclare
Expand Down

0 comments on commit 044934f

Please sign in to comment.