Skip to content

Commit 7575db4

Browse files
committed
Fix getWaveWindowByTabId to search cached tabs
When cached tabs send IPC events, lookup was failing because getWaveWindowByTabId only searched allLoadedTabViews. Now also checks allTabViewsCache to handle cached tabs.
1 parent 28b51e4 commit 7575db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emain/emain-window.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ export class WaveBrowserWindow extends BaseWindow {
685685

686686
export function getWaveWindowByTabId(tabId: string): WaveBrowserWindow {
687687
for (const ww of waveWindowMap.values()) {
688-
if (ww.allLoadedTabViews.has(tabId)) {
688+
if (ww.allLoadedTabViews.has(tabId) || ww.allTabViewsCache.has(tabId)) {
689689
return ww;
690690
}
691691
}

0 commit comments

Comments
 (0)