From 2189ed1ea2c102f28090d8a8037b39492d356446 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 27 Mar 2014 17:08:07 +0400 Subject: [PATCH] Fix #165 --- app/js/services.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index a77e8547..9b377dfe 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -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); }); }