You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cryptpad/www/logout/main.js

14 lines
382 B
JavaScript

define([
'/bower_components/localforage/dist/localforage.min.js',
'/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/';
});
});