Skip to content

Commit

Permalink
Fixed error of links not working because of blocked simpleanalytics s…
Browse files Browse the repository at this point in the history
…cript in Edge
  • Loading branch information
seeul8er committed Nov 27, 2024
1 parent ec85cf3 commit 4029359
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,20 @@ <h5>Donate</h5>
const button_pcb_files = document.getElementById("button_pcb_files");

button_official_board.onclick = async () => {
sa_event("click_get_board", {});
try {
sa_event("click_get_board", {});
} catch (e) {
console.log("Could not run simpleanalytics: " + e);
}
window.open("https://www.ebay.com/itm/116227992460?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=nhzOOuH_QF2&sssrc=2047675&ssuid=&widget_ver=artemis&media=COPY", '_blank').focus();
}

button_pcb_files.onclick = async () => {
sa_event("click_get_pcb", {});
try {
sa_event("click_get_pcb", {});
} catch (e) {
console.log("Could not run simpleanalytics: " + e);
}
window.open("https://buymeacoffee.com/seeul8er/e/301194", '_blank').focus();
}
</script>
Expand Down

0 comments on commit 4029359

Please sign in to comment.