@consuo/web-component-epg
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "@consuo/web-component-epg", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Show a Consuo schedule", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
export const update = async (apiUrl, channelId) => { | ||
const today = new Date().toLocaleDateString(); | ||
const url = `${apiUrl}/channels/${channelId}/schedule?date=${today}}`; | ||
const url = `${apiUrl}/channels/${channelId}/schedule?date=${today}`; | ||
const response = await fetch(url); | ||
@@ -5,0 +5,0 @@ const schedule = await response.json(); |
105835