From 1741c2a0ca867db7c755ff09677568f2e38f953c Mon Sep 17 00:00:00 2001 From: giuliof Date: Sun, 20 Sep 2020 23:45:22 +0200 Subject: [PATCH] [F.END] B.END URL as argument --- frontend/frontend.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/frontend.js b/frontend/frontend.js index a760ea5..90bd7f2 100644 --- a/frontend/frontend.js +++ b/frontend/frontend.js @@ -106,10 +106,13 @@ function zerocalcareDisplay() { } } -function zerocalcareTrigger() { +function zerocalcareTrigger(url) { + if (typeof url !== "string") + return + xhr = new XMLHttpRequest(); xhr.onload = zerocalcareDisplay; - xhr.open('GET', 'https://golem.linux.it/cgi/zerocalcare/main.py?interval=4weeks', true); + xhr.open('GET', url, true); xhr.send(null); }