commit a53586baddb6bcfb4645331e1a46a17157dcaa23
parent 1126c86b10f630c229a88f6741ce27c411f4b830
Author: Hunter
Date:   Thu, 10 Jul 2025 22:33:12 -0400

add null check for doc.head to prevent TypeError

Diffstat:
Mindex.html | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html @@ -142,7 +142,9 @@ // Inject CSS to disable overscroll in iframe content const style = doc.createElement('style'); style.textContent = `* { overscroll-behavior: none !important; }`; - doc.head.appendChild(style); + if (doc.head) { + doc.head.appendChild(style); + } doc.close();