aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'services/nuldoc/nuldoc-src/components/StaticStylesheet.ts')
-rw-r--r--services/nuldoc/nuldoc-src/components/StaticStylesheet.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts b/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts
index 43802d2..065ee20 100644
--- a/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts
+++ b/services/nuldoc/nuldoc-src/components/StaticStylesheet.ts
@@ -1,6 +1,6 @@
import { join } from "@std/path";
import { Config } from "../config.ts";
-import { elem, Element } from "../dom.ts";
+import { Element, link } from "../dom.ts";
import { calculateFileHash } from "./utils.ts";
export default async function StaticStylesheet(
@@ -8,5 +8,5 @@ export default async function StaticStylesheet(
): Promise<Element> {
const filePath = join(Deno.cwd(), config.locations.staticDir, fileName);
const hash = await calculateFileHash(filePath);
- return elem("link", { rel: "stylesheet", href: `${fileName}?h=${hash}` });
+ return link({ rel: "stylesheet", href: `${fileName}?h=${hash}` });
}