Clear Bookstack article cache on first load
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
if (!localStorage.getItem('bookstack_cache_cleared')) {
|
||||||
|
localStorage.removeItem('bookstack_article_Radius');
|
||||||
|
localStorage.setItem('bookstack_cache_cleared', 'true');
|
||||||
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', async () => {
|
document.addEventListener('DOMContentLoaded', async () => {
|
||||||
const linkEl = document.getElementById('bookstackLink');
|
const linkEl = document.getElementById('bookstackLink');
|
||||||
if (!linkEl) return;
|
if (!linkEl) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user