Skip to content

Commit

Permalink
Hide menu on screensaver start
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmoro committed May 12, 2024
1 parent d88aaeb commit d6784fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/screensaver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export function startScreensaver() {

function toggleScreensaverMode() {
const isScreensaverMode = toggleBooleanSetting("screensaver");
const footer = document.querySelector<HTMLElement>("footer");
const menu = document.querySelector<HTMLElement>("footer");

updateURL("screensaver", isScreensaverMode);
updateBooleanSettingButtonStatus("screensaver", isScreensaverMode);

if (isScreensaverMode) {
footer?.classList.add("hidden");
menu?.classList.add("hidden");
startScreensaver();
exitZenMode();
} else {
Expand Down

0 comments on commit d6784fd

Please sign in to comment.