mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 05:14:53 -05:00
Update creator-8.js
This commit is contained in:
@@ -1372,7 +1372,7 @@ async function imageLocal(event, destination, otherParams) {
|
|||||||
function loadScript(scriptPath) {
|
function loadScript(scriptPath) {
|
||||||
var script = document.createElement('script');
|
var script = document.createElement('script');
|
||||||
script.setAttribute('type', 'text/javascript');
|
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.onerror = function(){notify('A script failed to load, likely due to an update. Please reload your page. Sorry for the inconvenience.');}
|
||||||
script.setAttribute('src', scriptPath);
|
script.setAttribute('src', scriptPath);
|
||||||
if (typeof script != 'undefined') {
|
if (typeof script != 'undefined') {
|
||||||
document.querySelectorAll('head')[0].appendChild(script);
|
document.querySelectorAll('head')[0].appendChild(script);
|
||||||
|
Reference in New Issue
Block a user