Skip to content

Commit 148ca41

Browse files
committed
Fixing failure on firefox documentXUL when you tried to override document.head
1 parent 3991042 commit 148ca41

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

processing.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
var isDOMPresent = ("document" in this) && !("fake" in this.document);
2929

3030
// document.head polyfill for the benefit of Firefox 3.6
31-
document.head = document.head || document.getElementsByTagName('head')[0];
31+
if (!document.head) {
32+
document.getElementsByTagName('head')[0];
33+
}
3234

3335
// Typed Arrays: fallback to WebGL arrays or Native JS arrays if unavailable
3436
function setupTypedArray(name, fallback) {

0 commit comments

Comments
 (0)