fix type error

This commit is contained in:
Theis Pieter Hollebeek 2023-02-08 12:12:14 +01:00
parent 20acff066b
commit 017377da1b

View File

@ -2,7 +2,8 @@
export function setTopbarOffset() {
const height = document.getElementById("topbar")!.getBoundingClientRect().height;
document.querySelector(":root")!.style = `--topbar-offset: ${height}px;`
const root: HTMLElement = document.querySelector(":root")!;
root.style.setProperty("--topbar-offset", `${height}px`);
}
export function addToggleDropdownListener() {