From 676506cac22cf23822a44ba793e89fc8468a10c3 Mon Sep 17 00:00:00 2001 From: Janus Troelsen Date: Sun, 17 Apr 2022 12:36:37 -0500 Subject: [PATCH] Avoid top-level await, QuteBrowser compat --- datafiles/static/browse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/datafiles/static/browse.js b/datafiles/static/browse.js index 9b4e9425a..68dfa4d63 100644 --- a/datafiles/static/browse.js +++ b/datafiles/static/browse.js @@ -395,4 +395,7 @@ export const appendRating = async (evt) => { await submitSearch(); }; -await refresh(); +// Avoid top-level await since as of Apr 2022 it only has 84% penetration: +// https://caniuse.com/?search=top%20level%20await +// We don't need the result anyway. +refresh();