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
async function importAppScript() {
await import(`/vite/${CLIENT_ENTRY}`)
await import(`/embed_vite/${CLIENT_ENTRY}`)
.catch(async e => {
console.error(e);
renderError('APP_IMPORT');

View File

@ -19,14 +19,14 @@ html(class='embed')
link(rel='apple-touch-icon' href= appleTouchIcon || '/apple-touch-icon.png')
//- https://github.com/misskey-dev/misskey/issues/9842
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
script(type="module" src="/vite/@vite/client")
if !config.frontendEmbedManifestExists
script(type="module" src="/embed_vite/@vite/client")
if Array.isArray(entry.css)
each href in entry.css
link(rel='stylesheet' href=`/vite/${href}`)
link(rel='stylesheet' href=`/embed_vite/${href}`)
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='modulepreload' href=`/vite/${entry.file}`)
if !config.clientManifestExists
if !config.frontendManifestExists
script(type="module" src="/vite/@vite/client")
if Array.isArray(entry.css)