From 0dca8d9cfe19e860ef1f1a6b16380f9c5ef0bd60 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Sat, 2 Apr 2011 00:52:24 +0200 Subject: [PATCH] Fixed a incompatiblity with FF3 (and others). --- web/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/map.js b/web/js/map.js index 217d08d3..d204d765 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -33,7 +33,7 @@ function loadjs(url, completed) { script.onreadystatechange = function() { script.onload(); }; - document.head.appendChild(script); + (document.head || document.getElementsByTagName('head')[0]).appendChild(script); } function splitArgs(s) {