From 946d57d94c20647e40b5c58e1a1e3ba1a47bd5db Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Wed, 27 May 2020 15:37:09 -0700 Subject: [PATCH] Update main.js --- data/scripts/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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