fixed: error message if ics not found
This commit is contained in:
parent
32859a78f4
commit
16cf7c22ad
1 changed files with 6 additions and 0 deletions
6
main.js
6
main.js
|
|
@ -1284,6 +1284,12 @@ function checkevents()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!data.ics)
|
||||||
|
{
|
||||||
|
console.warn("could not retrieve events");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var note = getnote("events.json");
|
var note = getnote("events.json");
|
||||||
if (!note)
|
if (!note)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue