mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
18 lines
506 B
JavaScript
18 lines
506 B
JavaScript
// SPDX-FileCopyrightText: 2023 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
define([
|
|
'/components/localforage/dist/localforage.min.js',
|
|
'/common/cache-store.js',
|
|
'/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/';
|
|
});
|
|
});
|