From 04a01baf7e4617292f42d228e8c2003948bbdd6e Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sun, 20 Dec 2020 11:36:36 -0800 Subject: [PATCH] Update creator.js --- js/creator.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/creator.js b/js/creator.js index f33629ea..cffbcf36 100644 --- a/js/creator.js +++ b/js/creator.js @@ -1174,7 +1174,12 @@ function loadTutorialVideo() { } //Various loaders function imageURL(url, destination, otherParams) { - destination('https://cors-anywhere.herokuapp.com/' + url, otherParams); + var imageurl = url; + if (params.get('noproxy') != '') { + imageurl = 'https://cors-anywhere.herokuapp.com/' + url; + } + console.log(imageurl) + destination(imageurl, otherParams); } async function imageLocal(event, destination, otherParams) { var reader = new FileReader();