Skip to content

Commit

Permalink
feat: Better updating of page
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jan 28, 2024
1 parent da57e53 commit 52057b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions public/js/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ logButton.addEventListener('click', function () {
});
});

document.addEventListener('DOMContentLoaded', function () {
loadCollections();
});

// Clear button
var clearButton = document.getElementById('clearButton');
clearButton.addEventListener('click', function () {
chrome.runtime.sendMessage({ action: "clearStorage" }, function (response) {
console.log("Response:", response);
loadCollections();
});
});

0 comments on commit 52057b9

Please sign in to comment.