Subversion Repositories SmartDukaan

Rev

Rev 25440 | Rev 25442 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25440 Rev 25441
Line 139... Line 139...
139
					divObj.find('input[type=text]').val(value.title);
139
					divObj.find('input[type=text]').val(value.title);
140
					divObj.find('input:radio').prop("checked", checked);
140
					divObj.find('input:radio').prop("checked", checked);
141
					url = new URL(value.url);
141
					url = new URL(value.url);
142
					url.protocol = "https:";
142
					url.protocol = "https:";
143
					
143
					
144
			        fetch(url.toString()).then(function(data) {
144
			        fetch(url.toString(), {mode:'no-cors'}).then(function(data) {
145
					  	var objectURL = URL.createObjectURL(data.blob());
145
					  	var objectURL = URL.createObjectURL(data.blob());
146
					  	imgObject.src = objectUrl;
146
					  	imgObject.src = objectUrl;
147
					});
147
					});
148
				});
148
				});
149
			}
149
			}