diff --git a/data/scripts/main.js b/data/scripts/main.js index 6b28431a..703d815d 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -884,3 +884,13 @@ function textCodeReference() { //Must run last: initialize() + +//Redundant +function loadScript(scriptPath){ + var script = document.createElement('script') + script.setAttribute('type','text/javascript') + script.setAttribute('src', scriptPath) + if (typeof script != 'undefined') { + document.getElementsByTagName('head')[0].appendChild(script) + } +} \ No newline at end of file