diff --git a/apps/readest-app/src-tauri/src/lib.rs b/apps/readest-app/src-tauri/src/lib.rs index 1a86d9d7..22cb9c6c 100644 --- a/apps/readest-app/src-tauri/src/lib.rs +++ b/apps/readest-app/src-tauri/src/lib.rs @@ -269,6 +269,7 @@ pub fn run() { r#" window.addEventListener('DOMContentLoaded', function() { const isTauriLocal = window.location.protocol === 'tauri:' || + window.location.protocol === 'about:' || window.location.hostname === 'tauri.localhost'; const needsSafeArea = !isTauriLocal; if (needsSafeArea && !document.getElementById('safe-area-style')) {