|
|
|
@ -2,7 +2,8 @@ define([
|
|
|
|
|
'/common/common-constants.js',
|
|
|
|
|
'/common/common-hash.js',
|
|
|
|
|
'/bower_components/localforage/dist/localforage.min.js',
|
|
|
|
|
], function (Constants, Hash, localForage) {
|
|
|
|
|
'/customize/application_config.js',
|
|
|
|
|
], function (Constants, Hash, localForage, AppConfig) {
|
|
|
|
|
var LocalStore = {};
|
|
|
|
|
|
|
|
|
|
LocalStore.setThumbnail = function (key, value, cb) {
|
|
|
|
@ -115,6 +116,10 @@ define([
|
|
|
|
|
if (typeof (h) === "function") { h(); }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (typeof(AppConfig.customizeLogout) === 'function') {
|
|
|
|
|
return void AppConfig.customizeLogout(cb);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (cb) { cb(); }
|
|
|
|
|
};
|
|
|
|
|
LocalStore.onLogout = function (h) {
|
|
|
|
@ -125,6 +130,5 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return LocalStore;
|
|
|
|
|
});
|
|
|
|
|