fix(app): keep saved sites reachable from the native caption

This commit is contained in:
AAA committed 2026-11-21 04:48:58 -05:00
1 parent 4d7800800f
commit 4e92f273cc
7 files changed
+112 -57

No files matched your search

+3 -1
View File
@@ -28,7 +28,9 @@ const controls = __PIIK_WINDOW_CONTROLS__;
let language = 'en';
let maximized = false;
if (window.piikCaptionStandalone) document.body.dataset.standalone = '';
for (const action of ['minimize', 'maximize', 'close']) {
const actions = ['minimize', 'maximize', 'close'];
if (!window.piikCaptionStandalone) actions.unshift('bookmarks');
for (const action of actions) {
const button = document.createElement('button');
button.dataset.action = action;
button.onclick = () => window.ipc.postMessage(action);