demos/helper/uiProfile.js
function img_xhr(img, url) {
	var xhr = new XMLHttpRequest();
	xhr.open('GET', url, true);
	xhr.responseType = 'blob';
	xhr.onload = function(e) {
		img.src = window.URL.createObjectURL(this.response);
	};
	xhr.send();
}
function img_xhr(img, url) {
	var xhr = new XMLHttpRequest();
	xhr.open('GET', url, true);
	xhr.responseType = 'blob';
	xhr.onload = function(e) {
		img.src = window.URL.createObjectURL(this.response);
	};
	xhr.send();
}
function img_xhr ( img , url ) { var xhr = new XMLHttpRequest ( ) ; xhr . open ( 'GET' , url , true ) ; xhr . responseType = 'blob' ; xhr . onload = function ( e ) { img . src = window . URL . createObjectURL ( this . response ) ; } ; xhr . send ( ) ; }
Utility for loading the thumbnail in chromeapp
Utility for loading the thumbnail in chromeapp