snow basics

This commit is contained in:
Kyle
2021-02-04 13:55:27 -08:00
parent 93a918f0f0
commit cb7e1d4aee
14 changed files with 9 additions and 3 deletions

View File

@@ -1372,6 +1372,7 @@ async function imageLocal(event, destination, otherParams) {
function loadScript(scriptPath) {
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
script.onerror = function(){notify('An error occured when trying to load a script, please try reloading the page. Sorry for the inconvenience.');}
script.setAttribute('src', scriptPath);
if (typeof script != 'undefined') {
document.querySelectorAll('head')[0].appendChild(script);