mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 16:16:50 +00:00
16 lines
610 B
JavaScript
16 lines
610 B
JavaScript
define(['angular', 'webstorage'], function (angular) {
|
|
angular.module('webStorageModule')
|
|
.constant('prefix', 'mifosX')
|
|
.run(function ($log, webStorage) {
|
|
if (webStorage.isSupported) {
|
|
if (webStorage.local.isSupported) {
|
|
$log.info('Using local storage');
|
|
} else if (webStorage.session.isSupported) {
|
|
$log.info('Using session storage');
|
|
} else {
|
|
$log.warn('Using memory storage: a page reload will clear all stored data');
|
|
}
|
|
}
|
|
});
|
|
});
|