summaryrefslogtreecommitdiffstats
path: root/src/navtree.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/navtree.js')
-rw-r--r--src/navtree.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/navtree.js b/src/navtree.js
index eb18215..505ca61 100644
--- a/src/navtree.js
+++ b/src/navtree.js
@@ -19,7 +19,9 @@ function getScript(scriptName,func,show)
script.onload = func;
script.src = scriptName+'.js';
script.onreadystatechange = function() {
- if (script.readyState == 'complete') { func(); if (show) showRoot(); }
+ if (script.readyState=='complete' || script.readyState=='loaded') {
+ func(); if (show) showRoot();
+ }
};
head.appendChild(script);
}