From 265bbd35c1865f93f75e968d8992db37051a7621 Mon Sep 17 00:00:00 2001 From: Fauvet Matthis Date: Fri, 21 Jun 2024 15:16:40 +0200 Subject: [PATCH] modified code --- index.html | 6 +----- onzer.riot | 7 ++++--- 2 files changed, 5 insertions(+), 8 deletions(-) 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 @@