Release v0.9.0: Enable return to home popup on timed websites

Modified the inactivity check to show the return to home popup on both
timed and manual websites by removing the manualNavigationMode condition.
Previously, the popup only appeared on manual (0-duration) websites.
This commit is contained in:
Claude
2025-11-18 05:54:40 +00:00
parent 8833831b76
commit 0a81500432
+2 -3
View File
@@ -77,7 +77,7 @@ set -euo pipefail
### SECTION 1: CONSTANTS & GLOBALS ### SECTION 1: CONSTANTS & GLOBALS
################################################################################ ################################################################################
SCRIPT_VERSION=" 09.9.1" SCRIPT_VERSION="0.9.0"
KIOSK_USER="kiosk" KIOSK_USER="kiosk"
BUILD_USER="${SUDO_USER:-$(whoami)}" BUILD_USER="${SUDO_USER:-$(whoami)}"
KIOSK_HOME="/home/${KIOSK_USER}" KIOSK_HOME="/home/${KIOSK_USER}"
@@ -3602,7 +3602,7 @@ function startMasterTimer(){
} }
// 7. HOME RETURN CHECK // 7. HOME RETURN CHECK
if(homeTabIndex>=0&&!showingHidden&&manualNavigationMode){ if(homeTabIndex>=0&&!showingHidden){
const homeViewIdx=getHomeViewIndex(); const homeViewIdx=getHomeViewIndex();
const currentTabIdx=viewIndexToTabIndex(currentIndex); const currentTabIdx=viewIndexToTabIndex(currentIndex);
@@ -3648,7 +3648,6 @@ if(idleTime>=effectiveTimeout){
}else{ }else{
if(homeTabIndex<0)console.log('[HOME-DEBUG] ✗ No home tab configured'); if(homeTabIndex<0)console.log('[HOME-DEBUG] ✗ No home tab configured');
if(showingHidden)console.log('[HOME-DEBUG] ✗ Showing hidden tabs'); if(showingHidden)console.log('[HOME-DEBUG] ✗ Showing hidden tabs');
if(!manualNavigationMode)console.log('[HOME-DEBUG] ✗ Not in manual navigation mode');
} }
},1000); },1000);
} }