Skip to content

Commit eafefe0

Browse files
authored
Merge pull request #152 from arrowtype/activate-on-font-upload
Enable extension when font is uploaded
2 parents 9645cbc + be5768d commit eafefe0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)