Skip to content

Commit 2f1911f

Browse files
committed
Replaced window.open() in chatgpt.alert() on extension load w/ shorter single-arg chrome.tabs.create() ↞ [auto-sync from KudoAI/chatgpt.js-chrome-starter]
1 parent b667bc0 commit 2f1911f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starters/chrome/extension/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
chatgpt.alert('≫ ChatGPT extension loaded! 🚀', // title
6767
'Success! Press Ctrl+Shift+J to view all chatgpt.js methods.', // msg
6868
function getHelp() { // button
69-
window.open(config.ghRepoURL + '/issues', '_blank', 'noopener') },
69+
chrome.tabs.create({ url: `${config.ghRepoURL}/issues` }) },
7070
function dontShowAgain() { // checkbox
7171
settings.save('skipAlert', !config.skipAlert) }
7272
)

0 commit comments

Comments
 (0)