Update main.js

This commit is contained in:
Kyle
2018-12-23 14:37:06 -08:00
parent dc11d9806d
commit ac5cb008e1

View File

@@ -79,7 +79,7 @@ var imgListUser = ["art", "setSymbol", "watermark", "border"]
for (var i = 0; i < imgListUser.length; i ++) { for (var i = 0; i < imgListUser.length; i ++) {
var imgName = "img" + imgListUser[i].charAt(0).toUpperCase() + imgListUser[i].slice(1) var imgName = "img" + imgListUser[i].charAt(0).toUpperCase() + imgListUser[i].slice(1)
window[imgName] = new Image() window[imgName] = new Image()
// window[imgName].crossOrigin = "anonymous" window[imgName].crossOrigin = "anonymous"
window[imgName].onload = function() { window[imgName].onload = function() {
//If both tasks are required, it will make white pixels transparent first. That way they also get cropped out. //If both tasks are required, it will make white pixels transparent first. That way they also get cropped out.
if (this.whiteToTransparent == false) { if (this.whiteToTransparent == false) {