From 6d39a4ae614a904365a224e82516c9203a8afc09 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 15 Oct 2014 22:26:01 +0400 Subject: [PATCH] Fixed safari exception --- app/js/lib/ng_utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/js/lib/ng_utils.js b/app/js/lib/ng_utils.js index 64cbb0d3..82a98c61 100644 --- a/app/js/lib/ng_utils.js +++ b/app/js/lib/ng_utils.js @@ -239,6 +239,9 @@ angular.module('izhukov.utils', []) createObjectStore = function (db) { db.createObjectStore(dbStoreName); }; + if (!request) { + throw new Exception(); + } } catch (error) { storageIsAvailable = false; return $q.reject(error);