A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: document is not active on exitFullscreen
thecodrreef88ea7d4f4
diff --git a/apps/web/src/components/editor/toolbar.js b/apps/web/src/components/editor/toolbar.jsindex 82e02f8db..50afd3198 100644--- a/apps/web/src/components/editor/toolbar.js+++ b/apps/web/src/components/editor/toolbar.js@@ -77,7 +77,7 @@ function Toolbar(props) {if (isFocusMode) exitFullscreen(document);else enterFullscreen(document.documentElement);toggleFocusMode();- quill.focus();+ if (quill) quill.focus();},},{@@ -171,13 +171,20 @@ function enterFullscreen(elem) {/* Close fullscreen */function exitFullscreen(elem) {- if (elem.exitFullscreen) {- elem.exitFullscreen();- } else if (elem.webkitExitFullscreen) {- /* Safari */- elem.webkitExitFullscreen();- } else if (elem.msExitFullscreen) {- /* IE11 */- elem.msExitFullscreen();+ if (+ document.fullscreenElement ||+ document.webkitFullscreenElement ||+ document.mozFullScreenElement+ ) {+ document.exitFullscreen();}+ // if (elem.exitFullscreen) {+ // elem.exitFullscreen();+ // } else if (elem.webkitExitFullscreen) {+ // /* Safari */+ // elem.webkitExitFullscreen();+ // } else if (elem.msExitFullscreen) {+ // /* IE11 */+ // elem.msExitFullscreen();+ // }}