Skip to content

Commit cb10fe7

Browse files
committed
Increased delay +1s in showAbout action (fixes #226)
1 parent 5ee1bed commit cb10fe7

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

chatgpt-auto-continue/chromium/extension/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
3737
if (activeTab != chatgptTab) await new Promise(resolve => // after new tab loads
3838
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, changeInfo) {
3939
if (tabId == chatgptTab.id && changeInfo.status == 'complete') {
40-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
40+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
4141
}}))
4242
chrome.tabs.sendMessage(chatgptTab.id, { action: 'showAbout' })
4343
}

chatgpt-auto-continue/firefox/extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
3838
if (activeTab != chatgptTab) await new Promise(resolve => // after new tab loads
3939
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, changeInfo) {
4040
if (tabId == chatgptTab.id && changeInfo.status == 'complete') {
41-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
41+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
4242
}}))
4343
chrome.tabs.sendMessage(chatgptTab.id, { action: 'showAbout' })
4444
}

chatgpt-infinity/chromium/extension/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
4040
if (activeTab != chatgptTab) await new Promise(resolve => // after new tab loads
4141
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, changeInfo) {
4242
if (tabId == chatgptTab.id && changeInfo.status == 'complete') {
43-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
43+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
4444
}}))
4545
chrome.tabs.sendMessage(chatgptTab.id, { action: 'showAbout' })
4646
}

chatgpt-infinity/firefox/extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
4040
if (activeTab != chatgptTab) await new Promise(resolve => // after new tab loads
4141
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, changeInfo) {
4242
if (tabId == chatgptTab.id && changeInfo.status == 'complete') {
43-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
43+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
4444
}}))
4545
chrome.tabs.sendMessage(chatgptTab.id, { action: 'showAbout' })
4646
}

chatgpt-widescreen/chromium/extension/service-worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
5858
if (activeTab != aiTab) await new Promise(resolve => // after new tab loads
5959
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, info) {
6060
if (tabId == aiTab.id && info.status == 'complete') {
61-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
61+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
6262
}}))
6363
chrome.tabs.sendMessage(aiTab.id, { action: 'showAbout' })
6464
}

chatgpt-widescreen/firefox/extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ chrome.runtime.onMessage.addListener(async ({ action }) => {
5555
if (activeTab != aiTab) await new Promise(resolve => // after new tab loads
5656
chrome.tabs.onUpdated.addListener(function loadedListener(tabId, info) {
5757
if (tabId == aiTab.id && info.status == 'complete') {
58-
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 500)
58+
chrome.tabs.onUpdated.removeListener(loadedListener) ; setTimeout(resolve, 1500)
5959
}}))
6060
chrome.tabs.sendMessage(aiTab.id, { action: 'showAbout' })
6161
}

0 commit comments

Comments
 (0)