Skip to content

Commit 985f6ad

Browse files
committed
Moved extension load alert after await chatgpt.isLoaded() for stable button styling ↞ [auto-sync from https://github.com/KudoAI/chatgpt.js-chrome-starter]
1 parent 9382f8c commit 985f6ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

starters/chrome/extension/content.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
if (config.extensionDisabled) return
6666

6767
chatgpt.printAllFunctions() // to console
68+
await chatgpt.isLoaded() // if your hacks depend on delayed DOM content
69+
6870
if (!config.skipAlert) // alert to extension load
6971
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
7072
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
@@ -74,8 +76,6 @@
7476
settings.save('skipAlert', !config.skipAlert) }
7577
)
7678

77-
await chatgpt.isLoaded() // if your hacks depend on delayed DOM content
78-
7979
// Your code here...
8080
// Your code here...
8181
// Your code here...

0 commit comments

Comments
 (0)