Skip to content

Commit be5768d

Browse files
committed
Enable extension when font is uploaded
1 parent 9645cbc commit be5768d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/form.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ export async function addFormElement(
113113
await changeFont(parentEl, fontFileName);
114114
// Rebuild dropdowns
115115
await buildForm();
116+
// Auto-enable extension
117+
await autoEnableExtension();
116118
});
117119
};
118120
el.querySelector<HTMLButtonElement>(".show-fallbacks").onclick = e => {
@@ -164,6 +166,8 @@ export async function addFormElement(
164166
await changeFont(parentEl, fontFileName);
165167
// Rebuild dropdowns
166168
await buildForm();
169+
// Auto-enable extension
170+
await autoEnableExtension();
167171
},
168172
async () => {
169173
// Ask tabs to show reloading animation

0 commit comments

Comments
 (0)