From 16cf7c22ade2cf09eab0d6485da264787835041b Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 20 Jun 2023 09:38:08 +0200 Subject: [PATCH] fixed: error message if ics not found --- main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.js b/main.js index 5b6d025..02cb1ac 100644 --- a/main.js +++ b/main.js @@ -1284,6 +1284,12 @@ function checkevents() return; } + if (!data.ics) + { + console.warn("could not retrieve events"); + return; + } + var note = getnote("events.json"); if (!note) {