From 8254c42268f1b07d6a99052fe3f983236e486020 Mon Sep 17 00:00:00 2001 From: marleyrae Date: Sat, 10 Jun 2023 15:01:28 -0700 Subject: [PATCH] Fix menu css --- menu.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/menu.js b/menu.js index 7e315b1..2e87a0c 100644 --- a/menu.js +++ b/menu.js @@ -1,10 +1,9 @@ -/* --------------------------------------------------------------------------------------------- import menu css ---- */ - -import '/style/menu.css' - -/* -------------------------------------------------------------------------------------------------- build menu ---- */ - (async () => { + const style = document.createElement('link') + style.rel = 'stylesheet' + style.href = '/style/menu.css' + document.head.append(style) + const siteRoot = '/' + location.pathname.split('/')[1] const {wayback} = await import(/* @vite-ignore */`${siteRoot}/config.js`)