Skip to content

Commit 48a9919

Browse files
committed
refactor: update fullscreen handling to use document.documentElement instead of document.body to fix theming issues
1 parent 8b36c3a commit 48a9919

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/core/src/commands/global.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,11 @@ registerAll({
9393
},
9494
handler: {
9595
execute: async _context => {
96-
if (document.fullscreenElement === document.body) {
96+
const root = document.documentElement
97+
if (document.fullscreenElement === root) {
9798
await document.exitFullscreen()
9899
} else {
99-
await document.body.requestFullscreen()
100+
await root.requestFullscreen()
100101
}
101102
}
102103
},

0 commit comments

Comments
 (0)