From 402935912ae0248322ad0fa672763eb7a2e501da Mon Sep 17 00:00:00 2001
From: Wolfgang <24637325+seeul8er@users.noreply.github.com>
Date: Wed, 27 Nov 2024 21:43:53 +0100
Subject: [PATCH] Fixed error of links not working because of blocked
simpleanalytics script in Edge
---
index.html | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 85601ba..aa84504 100644
--- a/index.html
+++ b/index.html
@@ -138,12 +138,20 @@
Donate
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();
}