fix(app): keep saved sites reachable from the native caption
This commit is contained in:
1 parent
4d7800800f
commit
4e92f273cc
7 files changed
+112
-57
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user