Skip to content

Commit

Permalink
Deploying to gh-pages from @ 52057b9 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
kordwarshuis committed Jan 28, 2024
1 parent 7ca29a6 commit 1dd03e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3770,12 +3770,12 @@ const iziToast = /* @__PURE__ */ getDefaultExportFromCjs(iziToastExports);
theme: "light",
icon: "icon-person",
title: "Hey",
message: `<p>${userInform}. To see your collections go to the options of the Kerific extension (right-click on the icon).</p>`,
message: `<p><strong>${userInform}</strong>. To see your collections go to the options of the Kerific extension (right-click on the icon).</p>`,
position: "topRight",
// bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter
progressBarColor: "rgb(0, 255, 184)",
progressBarColor: "rgb(91 175 255)",
maxWidth: "25%",
timeout: 5e3,
timeout: 1e4,
// buttons: [
// ['<button>Ok</button>', function (instance, toast) {
// alert("Hello world!");
Expand Down
5 changes: 5 additions & 0 deletions 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 1dd03e3

Please sign in to comment.