From 5ebeb7f3ea774ca712e06ad6fb28fbe76c935964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Heine=20n=C3=A9=20Lang?= Date: Tue, 30 Apr 2024 09:39:42 +0200 Subject: [PATCH] Add missing loadScript implementation to font-inspector.html --- docs/font-inspector.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/font-inspector.html b/docs/font-inspector.html index 2dab41be..44a1de92 100644 --- a/docs/font-inspector.html +++ b/docs/font-inspector.html @@ -288,6 +288,9 @@

Free Software

} const form = document.forms.demo; +const loadScript = (src) => new Promise((onload) => document.documentElement.append( + Object.assign(document.createElement('script'), {src, onload}) +)); async function display(file, name) { form.fontname.innerText = name; const isWoff2 = name.endsWith('.woff2');