added new logout button and fixed pdf viewing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user