Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Razumihin committed Jan 8, 2022
2 parents e9d8bf8 + ac270c7 commit d3f4d61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export default class FullScreenPlugin extends Plugin {
el.addEventListener("fullscreenchange", (event) => {
if (!document.fullscreenElement) {
fullscreenMutationObserver.disconnect();
document.body.classList.remove('fullscreen')
} else {
document.body.classList.add('fullscreen')
}
});

Expand Down

0 comments on commit d3f4d61

Please sign in to comment.