mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-17 07:57:23 -05:00
fixed some lighthouse report
This commit is contained in:
@@ -1036,10 +1036,14 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
|
||||
var header = document.getElementById("header-container");
|
||||
if (header) {
|
||||
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
|
||||
window.addEventListener("resize", function () {
|
||||
requestAnimationFrame(function () {
|
||||
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
|
||||
});
|
||||
window.addEventListener("resize", function () {
|
||||
requestAnimationFrame(function () {
|
||||
document.documentElement.style.setProperty("--header-height", header.offsetHeight + "px");
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
applyTheme();
|
||||
|
||||
Reference in New Issue
Block a user