relmio 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/web/server.js CHANGED
@@ -181,6 +181,7 @@ async function loadDefaultUiFiles() {
181
181
  readFile(new URL("../ui/app.js", import.meta.url), "utf8"),
182
182
  readFile(new URL("../ui/time.js", import.meta.url), "utf8"),
183
183
  readFile(new URL("../ui/styles.css", import.meta.url), "utf8"),
184
+ readFile(new URL("../ui/geist-latin.woff2", import.meta.url)),
184
185
  ]);
185
186
 
186
187
  return {
@@ -188,6 +189,7 @@ async function loadDefaultUiFiles() {
188
189
  "/app.js": files[1],
189
190
  "/time.js": files[2],
190
191
  "/styles.css": files[3],
192
+ "/geist-latin.woff2": files[4],
191
193
  };
192
194
  }
193
195
 
@@ -417,7 +419,9 @@ function createRequestHandler(state) {
417
419
  }
418
420
 
419
421
  const contentType =
420
- path.endsWith(".js")
422
+ path.endsWith(".woff2")
423
+ ? "font/woff2"
424
+ : path.endsWith(".js")
421
425
  ? "text/javascript; charset=utf-8"
422
426
  : path === "/styles.css"
423
427
  ? "text/css; charset=utf-8"