From be5768ddfcb4e61983a59e09fdf42c1713a33118 Mon Sep 17 00:00:00 2001 From: Roel Nieskens Date: Tue, 7 Oct 2025 10:01:38 +0200 Subject: [PATCH] Enable extension when font is uploaded --- src/form.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/form.ts b/src/form.ts index be74778..2308492 100644 --- a/src/form.ts +++ b/src/form.ts @@ -113,6 +113,8 @@ export async function addFormElement( await changeFont(parentEl, fontFileName); // Rebuild dropdowns await buildForm(); + // Auto-enable extension + await autoEnableExtension(); }); }; el.querySelector(".show-fallbacks").onclick = e => { @@ -164,6 +166,8 @@ export async function addFormElement( await changeFont(parentEl, fontFileName); // Rebuild dropdowns await buildForm(); + // Auto-enable extension + await autoEnableExtension(); }, async () => { // Ask tabs to show reloading animation