Update custom.html

master
Ronin0000 2021-11-20 18:44:23 -08:00 committed by GitHub
parent 71ff5959ae
commit d491103414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@
console.log = console.log || function(){}; console.log = console.log || function(){};
console.log(calendar.getEvents()[0].title()); console.log(calendar.getEvents()[0].title());
//-------------------- //--------------------
if(calendarEvents) if(calendarEvents){
for(i=0;i>calendarEvents.length;i++){ for(i=0;i>calendarEvents.length;i++){
var calendarEntry = {} var calendarEntry = {}
calendarEntry['cn'] = calendarEvents[i].title(); calendarEntry['cn'] = calendarEvents[i].title();
@ -91,9 +91,9 @@
calendarEntry['em'] = calendarEvents[i].end.getMinutes(); calendarEntry['em'] = calendarEvents[i].end.getMinutes();
schedule.push(calendarEntry) schedule.push(calendarEntry)
} }
}else{ }else{
alert("Add some events!"); alert("Add some events!");
} }
// build the app's text using a templated String // build the app's text using a templated String
var app = ` var app = `
require("Font8x12").add(Graphics); require("Font8x12").add(Graphics);