|
|
@ -239,6 +239,9 @@ angular.module('izhukov.utils', []) |
|
|
|
createObjectStore = function (db) { |
|
|
|
createObjectStore = function (db) { |
|
|
|
db.createObjectStore(dbStoreName); |
|
|
|
db.createObjectStore(dbStoreName); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
if (!request) { |
|
|
|
|
|
|
|
throw new Exception(); |
|
|
|
|
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
} catch (error) { |
|
|
|
storageIsAvailable = false; |
|
|
|
storageIsAvailable = false; |
|
|
|
return $q.reject(error); |
|
|
|
return $q.reject(error); |
|
|
|