add null check for doc.head to prevent TypeError Hunter Thursday, July 10th, 2025 at 10:33 PM
| index.html | +3 | -1 |
142 // Inject CSS to disable overscroll in iframe content 143 const style = doc.createElement('style'); 144 style.textContent = `* { overscroll-behavior: none !important; }`; - doc.head.appendChild(style); 145 + if (doc.head) { 146 + doc.head.appendChild(style); 147 + } 148 149 doc.close(); 150