This commit is contained in:
syuilo 2024-08-26 17:16:26 +09:00
parent b0a2604425
commit bbc6d9fbc7
3 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@
//#region Script //#region Script
async function importAppScript() { async function importAppScript() {
await import(`/vite/${CLIENT_ENTRY}`) await import(`/embed_vite/${CLIENT_ENTRY}`)
.catch(async e => { .catch(async e => {
console.error(e); console.error(e);
renderError('APP_IMPORT'); renderError('APP_IMPORT');

View File

@ -19,14 +19,14 @@ html(class='embed')
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png') link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
//- https://github.com/misskey-dev/misskey/issues/9842 //- https://github.com/misskey-dev/misskey/issues/9842
link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0') link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0')
link(rel='modulepreload' href=`/vite/${entry.file}`) link(rel='modulepreload' href=`/embed_vite/${entry.file}`)
if !config.clientManifestExists if !config.frontendEmbedManifestExists
script(type="module" src="/vite/@vite/client") script(type="module" src="/embed_vite/@vite/client")
if Array.isArray(entry.css) if Array.isArray(entry.css)
each href in entry.css each href in entry.css
link(rel='stylesheet' href=`/vite/${href}`) link(rel='stylesheet' href=`/embed_vite/${href}`)
title title
block title block title

View File

@ -40,7 +40,7 @@ html
link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0') link(rel='stylesheet' href='/assets/tabler-icons/tabler-icons.min.css?v3.3.0')
link(rel='modulepreload' href=`/vite/${entry.file}`) link(rel='modulepreload' href=`/vite/${entry.file}`)
if !config.clientManifestExists if !config.frontendManifestExists
script(type="module" src="/vite/@vite/client") script(type="module" src="/vite/@vite/client")
if Array.isArray(entry.css) if Array.isArray(entry.css)