fix(layout): skip applying safe area insets when the iframe content is reloaded (#2550)

This commit is contained in:
Huang Xin
2025-11-26 11:10:52 +08:00
committed by GitHub
parent f709a657fa
commit ba2aa4bee6
+1
View File
@@ -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')) {