Skip to content

Commit

Permalink
Moved extension load alert after await chatgpt.isLoaded() for stabl…
Browse files Browse the repository at this point in the history
…e button styling
  • Loading branch information
adamlui committed Nov 20, 2024
1 parent c220af7 commit 9cc7d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
if (config.extensionDisabled) return

chatgpt.printAllFunctions() // to console
await chatgpt.isLoaded() // if your hacks depend on delayed DOM content

if (!config.skipAlert) // alert to extension load
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
Expand All @@ -74,8 +76,6 @@
settings.save('skipAlert', !config.skipAlert) }
)

await chatgpt.isLoaded() // if your hacks depend on delayed DOM content

// Your code here...
// Your code here...
// Your code here...
Expand Down

0 comments on commit 9cc7d56

Please sign in to comment.