diff --git a/public/js/collection.js b/public/js/collection.js index 09f98cb..d167540 100644 --- a/public/js/collection.js +++ b/public/js/collection.js @@ -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(); }); });