Skip to content

Commit

Permalink
Remove unnecessary conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Aug 31, 2023
1 parent cfb3d78 commit 1a019f7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/fontra/views/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1585,14 +1585,10 @@ export class EditorController {

toggleFullscreen() {
if (document.fullscreenElement) {
if (document.exitFullscreen) {
document.exitFullscreen();
}
document.exitFullscreen();
} else {
const element = document.documentElement;
if (element.requestFullscreen) {
element.requestFullscreen();
}
element.requestFullscreen();
}
}

Expand Down

0 comments on commit 1a019f7

Please sign in to comment.