pyfedi/app/templates/themes/x_api/js/logout.js

7 lines
190 B
JavaScript
Raw Normal View History

localStorage.removeItem('jwt');
sessionStorage.removeItem('jwt');
const url = new URL(window.location.href);
const baseUrl = `${url.protocol}//${url.host}`;
window.location.href = baseUrl;