We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2418f3d commit 83636e1Copy full SHA for 83636e1
starters/chrome/extension/service-worker.js
@@ -31,8 +31,7 @@ chrome.runtime.onMessage.addListener(async req => {
31
chrome.tabs.onUpdated.addListener(async function statusListener(tabId, info) {
32
if (tabId == chatgptTab.id && info.status == 'complete') {
33
chrome.tabs.onUpdated.removeListener(statusListener)
34
- await new Promise(resolve => setTimeout(resolve, 2500))
35
- resolve()
+ setTimeout(resolve, 2500)
36
}}))
37
chrome.tabs.sendMessage(chatgptTab.id, { action: 'showAbout' })
38
}
0 commit comments