Skip to content

Commit e3bf89c

Browse files
authored
Update sitemaplinks.html
1 parent 08a9f61 commit e3bf89c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Wiki/sitemaplinks.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,15 @@ <h2 id="viewTitle"></h2>
261261
window.onload = displayWikiPages;
262262

263263
function deleteAll() {
264-
}
264+
const localWikis = wikiPages;
265+
266+
// Loop through the array and remove each item from localStorage
267+
localWikis.forEach(localWiki => {
268+
localStorage.removeItem(localWiki); // Assuming the list item name matches the localStorage key
269+
});
270+
// Clear the array
271+
localWikis.length = 0;
272+
}
265273

266274
</script>
267275
<h2>Wiki Homepage</h2>

0 commit comments

Comments
 (0)