Add await

Even though it technically works without, let’s be clear that syscalls are always async.
This commit is contained in:
Zef Hemel
2022-07-24 09:12:17 +02:00
committed by GitHub
parent ad5e9efddf
commit b90e7a0417

View File

@@ -8,5 +8,5 @@ const loneRangerQuotes = [
];
export async function helloWorld() {
flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
}
await flashNotification(loneRangerQuotes[Math.floor(Math.random() * loneRangerQuotes.length)]);
}