diff --git a/index.html b/index.html index 0e300ce..ea8fde4 100644 --- a/index.html +++ b/index.html @@ -22,12 +22,8 @@ } ) } - async function wait_data(){ - return await this.fetch_data() - } - riot.compile().then(() => { - riot.mount('onzer', {items: wait_data()}); + riot.mount('onzer', {items: fetch_data()}); }) diff --git a/onzer.riot b/onzer.riot index 35d7b58..9de3d2d 100644 --- a/onzer.riot +++ b/onzer.riot @@ -29,14 +29,15 @@