Skip to content

Commit c719610

Browse files
start streaming if the tab is active
Signed-off-by: Nikita Skrynnik <[email protected]>
1 parent feb2ddf commit c719610

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/state/state.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ export class AppState {
127127
for (let tab of tabs) {
128128
let newTab = await client.openTab({ url: tab.url });
129129
this.tabs.add(newTab, tab);
130+
if (tab.active) {
131+
newTab.startVideo();
132+
}
130133
}
131134
} catch (err) {
132135
console.error("Error restoring tabs:", err);

0 commit comments

Comments
 (0)