From 35063970c016b33f9165d479f9a92413cce9d79b Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 10 Mar 2024 22:45:51 +0100 Subject: [PATCH] Try a fetch directly during bootup too --- css_inject.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/css_inject.py b/css_inject.py index 040a162..9a6dac8 100644 --- a/css_inject.py +++ b/css_inject.py @@ -40,6 +40,8 @@ async def every(__seconds: float, func, *args, **kwargs): async def initialize_class_mappings(): css_translations_path = os.path.join(get_theme_path(), "css_translations.json") + await fetch_class_mappings(css_translations_path) + asyncio.get_event_loop().create_task(every(60, fetch_class_mappings, css_translations_path)) if not os.path.exists(css_translations_path):