Skip to content

Commit

Permalink
feat: update header to set stylesheet for whole app
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Apr 4, 2024
1 parent 74cfa65 commit 6ac702f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/plugins/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ export const Header = ({url = "/header/", page = "mapstore", height = 90, ignore
header.setAttribute("logo-url", logoUrl);
header.setAttribute("stylesheet", stylesheet);
headerScript.src = script;
if (stylesheet) {
const link = document.createElement("link");
link.setAttribute("rel", "stylesheet");
link.setAttribute("type", "text/css");
link.setAttribute("href", stylesheet);
document.head.appendChild(link);
}

if (container) {
container.style.top = height + "px";
Expand Down

0 comments on commit 6ac702f

Please sign in to comment.