Skip to content

Commit 4eaefa3

Browse files
authored
Update sitemaplinks.html
1 parent 30be395 commit 4eaefa3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Wiki/sitemaplinks.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,7 @@ <h2 id="viewTitle"></h2>
261261
window.onload = displayWikiPages;
262262

263263
function deleteAll() {
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;
264+
localStorage.clear();
272265
}
273266

274267
</script>

0 commit comments

Comments
 (0)