Improve logout app
parent
93ea996f86
commit
b8914fef1b
@ -1,4 +1,13 @@
|
|||||||
define(['/bower_components/localforage/dist/localforage.min.js'], function (localForage) {
|
define([
|
||||||
localForage.clear();
|
'/bower_components/localforage/dist/localforage.min.js',
|
||||||
localStorage.clear();
|
'/common/outer/cache-store.js',
|
||||||
|
'/bower_components/nthen/index.js',
|
||||||
|
], function (localForage, Cache, nThen) {
|
||||||
|
nThen(function (w) {
|
||||||
|
localStorage.clear();
|
||||||
|
localForage.clear(w());
|
||||||
|
Cache.clear(w());
|
||||||
|
}).nThen(function () {
|
||||||
|
window.location.href = '/login/';
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue