forked from akai/readest
fix(layout): skip applying safe area insets when the iframe content is reloaded (#2550)
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user