summaryrefslogtreecommitdiff
path: root/web/js/app.js
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-02 22:42:35 +0300
committerPaul Buetow <paul@buetow.org>2026-05-02 22:42:35 +0300
commitdaccc2fd2c43545fe2a904cccb1f866e38817a10 (patch)
treedca78b9da806adbf61d4a259c576f93027e57ea9 /web/js/app.js
parente80e81f4a47a201074f12c6bcd7cf1591a6722e3 (diff)
add player minimize toggle
Diffstat (limited to 'web/js/app.js')
-rw-r--r--web/js/app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/app.js b/web/js/app.js
index a0e8893..b2e79e9 100644
--- a/web/js/app.js
+++ b/web/js/app.js
@@ -1,7 +1,7 @@
import { API } from './api.js';
import { initKeyboard } from './keyboard.js';
import { initSelection, select, selectByElement, next, prev, currentIndex, currentElement, navUp, navDown, navLeft, navRight } from './selection.js';
-import { initPlayer, togglePlay, toggleFullscreen, toggleStage, toggleDetach, exitFullscreenIfNeeded, currentMediaId, selectAndPlay, playPrevious, playNext } from './player.js';
+import { initPlayer, togglePlay, toggleFullscreen, toggleStage, toggleMinimize, toggleDetach, exitFullscreenIfNeeded, currentMediaId, selectAndPlay, playPrevious, playNext } from './player.js';
import { initSearch, focusSearch, trigger as triggerSearch } from './search.js';
import { initShuffle, toggle as toggleShuffle, isOn as isShuffle } from './shuffle.js';
import { initThemes } from './themes.js';
@@ -109,6 +109,7 @@ async function initApp() {
playPause: () => togglePlay(),
fullscreen: () => toggleFullscreen(),
toggleStage: () => toggleStage(),
+ toggleMinimize: () => toggleMinimize(),
escape: () => { exitFullscreenIfNeeded(); const el = currentElement(); if (el) el.classList.remove('selected'); closeAllModals(); },
shuffle: () => { toggleShuffle(); loadMedia(); },
share: () => shareSelected(),