Skip to content

Commit

Permalink
Restored needed isFFuserScript flag
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed May 1, 2024
1 parent bc51dd5 commit 80d8788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ localStorage.notifyProps = JSON.stringify({
});

// Init environment flags
const isFFtmScript = isFFuserScript && GM_info.scriptHandler == 'Tampermonkey';
const isFFuserScript = navigator.userAgent.includes('Firefox') && typeof unsafeWindow != 'undefined',
isFFtmScript = isFFuserScript && GM_info.scriptHandler == 'Tampermonkey';

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

0 comments on commit 80d8788

Please sign in to comment.