Subversion Repositories SmartDukaan

Rev

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

Rev 25441 Rev 25442
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(), {mode:'no-cors'}).then(function(data) {
144
			        fetch(url.toString(), {mode:'no-cors'})
-
 
145
			        .then(function(data) {
145
					  	var objectURL = URL.createObjectURL(data.blob());
146
					  	return response.blob();
-
 
147
					})
-
 
148
					.then(function(blob){
146
					  	imgObject.src = objectUrl;
149
						imgObject.src=URL.createObjectURL(blob);
147
					});
150
					});
148
				});
151
				});
149
			}
152
			}
150
		});
153
		});
151
	});
154
	});