Skip to content

Commit 9d37ba4

Browse files
committed
Added comment/line breaks + moved await chatgpt.isLoaded() down for readability ↞ [auto-sync from KudoAI/chatgpt.js-chrome-starter]
1 parent 68f4567 commit 9d37ba4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

starters/chrome/extension/content.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
// Run MAIN routine
4545

4646
if (config.extensionDisabled) return
47-
await chatgpt.isLoaded()
47+
4848
chatgpt.printAllFunctions() // to console
49-
if (!config.skipAlert) {
49+
if (!config.skipAlert) { // alert to extension load
5050
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
5151
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
5252
function getHelp() { // button
@@ -55,6 +55,8 @@
5555
settings.save('skipAlert', !config.skipAlert) }
5656
)}
5757

58+
await chatgpt.isLoaded()
59+
5860
// Your code here...
5961
// Your code here...
6062
// Your code here...

0 commit comments

Comments
 (0)