This commit is contained in:
Igor Zhukov 2014-03-27 17:08:07 +04:00
parent 7875517e47
commit 2189ed1ea2

View File

@ -2316,7 +2316,8 @@ angular.module('myApp.services', [])
return urlPromises[url] = $http.get(url, {responseType: 'blob', transformRequest: null})
.then(function (response) {
return window.webkitURL.createObjectURL(response.data);
window.URL = window.URL || window.webkitURL;
return window.URL.createObjectURL(response.data);
});
}