added new logout button and fixed pdf viewing

This commit is contained in:
2025-08-14 11:10:09 +02:00
parent 1c2a0416bb
commit 7ef49b4924
4 changed files with 35 additions and 6 deletions
@@ -586,6 +586,7 @@ Vue.component('warehouse-shipping-note', {
let hiddenTime = null;
const RELOAD_AFTER_SECONDS = 300;
document.addEventListener('visibilitychange', () => {
if (!window.matchMedia('(display-mode: standalone)').matches) return;
if (document.visibilityState === 'hidden') {
hiddenTime = new Date();
} else if (document.visibilityState === 'visible' && hiddenTime) {