Skip to content

Commit cbf9d77

Browse files
committed
fix(tm): check if host is connected before requesting fullscreen
1 parent bd35042 commit cbf9d77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/tile-manager/controllers/fullscreen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class FullscreenController implements ReactiveController {
2222
}
2323

2424
public setState(fullscreen: boolean, isUserTriggered = false): void {
25+
if (!this._host.isConnected) return;
26+
2527
if (isUserTriggered && this._callback) {
2628
if (!this._callback.call(this._host, fullscreen)) {
2729
return;

0 commit comments

Comments
 (0)