This commit is contained in:
Kyle
2018-12-22 12:25:39 -08:00
parent 600c371975
commit b322fe6ee1
2 changed files with 1 additions and 7 deletions

View File

@@ -816,9 +816,6 @@ function loadSetSymbolWatermark() {
}
//Loads an image from URL
function imageURL(input, targetImage) {
if (targetImage.crossOrigin == null) {
targetImage.crossOrigin = "anonymous"
}
targetImage.cropped = false
if (targetImage == imgWatermark) {
imgWatermark.whiteToTransparent = false
@@ -827,9 +824,6 @@ function imageURL(input, targetImage) {
}
function loadImage(event, destination, arg) {
if (arg != false) {
if (isMobile == true) {
destination.crossOrigin = null
}
var input = event.target
var reader = new FileReader()
reader.onload = function() {

View File

@@ -261,7 +261,7 @@
</div>
<div class="cmm" id="cmm-art">
Image
<input type="file" class="input" accept="image/*" onchange="loadImage(event, imgArt, true)" id="inputPicture">
<input type="file" name="inputCardArt" class="input" accept="image/*" onchange="loadImage(event, imgArt, true)" id="inputPicture">
<br>
<input type="text" class="input" placeholder="Or use a URL" onchange="imageURL(this, imgArt)">
<br>