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);