Update creator.js

This commit is contained in:
Kyle
2020-12-20 11:36:36 -08:00
parent 1dc91bbb8e
commit 04a01baf7e

View File

@@ -1174,7 +1174,12 @@ function loadTutorialVideo() {
} }
//Various loaders //Various loaders
function imageURL(url, destination, otherParams) { 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) { async function imageLocal(event, destination, otherParams) {
var reader = new FileReader(); var reader = new FileReader();