Subversion Repositories SmartDukaan

Rev

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

Rev 25442 Rev 25443
Line 140... Line 140...
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'})
144
			        fetch(url.toString(), {mode:'no-cors'})
145
			        .then(function(data) {
145
			        .then(function(response) {
146
					  	return response.blob();
146
					  	return response.blob();
147
					})
147
					})
148
					.then(function(blob){
148
					.then(function(blob){
149
						imgObject.src=URL.createObjectURL(blob);
149
						imgObject.src=URL.createObjectURL(blob);
150
					});
150
					});