Skip to content

Commit ec88c71

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 36cf97b commit ec88c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

emain/emain-window.ts

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

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

0 commit comments

Comments
 (0)