Skip to content

Build your personal knowledge base with Trilium Notes

fix(command_palette): full screen not working on the browser

Elian Doran54e3ab513985
diff --git a/apps/client/src/components/entrypoints.ts b/apps/client/src/components/entrypoints.ts
index 0ad2c76ed3..fd81879a72 100644
--- a/apps/client/src/components/entrypoints.ts
+++ b/apps/client/src/components/entrypoints.ts
@@ -113,7 +113,9 @@ export default class Entrypoints extends Component {
if (win.isFullScreenable()) {
win.setFullScreen(!win.isFullScreen());
}
- } // outside of electron this is handled by the browser
+ } else {
+ document.documentElement.requestFullscreen();
+ }
}
reloadFrontendAppCommand() {