fix type error
This commit is contained in:
parent
20acff066b
commit
017377da1b
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
export function setTopbarOffset() {
|
export function setTopbarOffset() {
|
||||||
const height = document.getElementById("topbar")!.getBoundingClientRect().height;
|
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() {
|
export function addToggleDropdownListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user