Skip to content

Commit

Permalink
Added comment/line breaks + moved await chatgpt.isLoaded() down for…
Browse files Browse the repository at this point in the history
… readability ↞ [auto-sync from `KudoAI/chatgpt.js-chrome-starter`]
  • Loading branch information
kudo-sync-bot committed Nov 14, 2024
1 parent 68f4567 commit 9d37ba4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions starters/chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
// Run MAIN routine

if (config.extensionDisabled) return
await chatgpt.isLoaded()

chatgpt.printAllFunctions() // to console
if (!config.skipAlert) {
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
function getHelp() { // button
Expand All @@ -55,6 +55,8 @@
settings.save('skipAlert', !config.skipAlert) }
)}

await chatgpt.isLoaded()

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

0 comments on commit 9d37ba4

Please sign in to comment.