updated slideshow script

This commit is contained in:
zsviczian
2023-04-29 18:12:29 +02:00
parent 12594baac6
commit dd0c0cd021
3 changed files with 4 additions and 4 deletions

View File

@@ -411,7 +411,7 @@ const initializeEventListners = () => {
const exitPresentation = async (openForEdit = false) => {
if(openForEdit) ea.targetView.preventAutozoom();
if(!app.isMobile && !inPopoutWindow) await document.exitFullscreen();
if(!app.isMobile && !inPopoutWindow && document?.fullscreenElement) await document.exitFullscreen();
if(app.isMobile) {
ea.viewToggleFullScreen(true);
} else {

File diff suppressed because one or more lines are too long

View File

@@ -86,13 +86,13 @@ export const setDynamicStyle = (
`--sidebar-shadow: ${str(gray1)};` +
`--popup-text-color: ${str(text)};` +
`--code-normal: ${str(text)};` +
`--code-background: ${str(gray2)};` +
`--h1-color: ${str(text)};` +
`--h2-color: ${str(text)};` +
`--h3-color: ${str(text)};` +
`--h4-color: ${str(text)};` +
`color: ${str(text)};` +
`--select-highlight-color: ${str(gray1)};` +
`--popup-bg-color: ${str(text)};`;
`--select-highlight-color: ${str(gray1)};`;
view.excalidrawContainer?.setAttribute(
"style",