fix(embed): use absolute paths for styles and images

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2489>
This commit is contained in:
Kasper Seweryn 2023-06-16 17:43:46 +00:00 committed by Marge
parent 71ed2aecb1
commit 9cee08b264
1 changed files with 4 additions and 4 deletions

View File

@ -7,11 +7,11 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="generator" content="Funkwhale"> <meta name="generator" content="Funkwhale">
<link rel="icon" href="favicon.ico"> <link rel="icon" href="/favicon.ico">
<title>Funkwhale Widget</title> <title>Funkwhale Widget</title>
<link rel="stylesheet" href="embed.css"> <link rel="stylesheet" href="/embed.css">
<script type="module"> <script type="module">
import { createApp, reactive, nextTick } from 'https://unpkg.com/petite-vue@0.4.1?module' import { createApp, reactive, nextTick } from 'https://unpkg.com/petite-vue@0.4.1?module'
@ -35,7 +35,7 @@
} }
// Cover // Cover
const DEFAULT_COVER = 'embed-default-cover.jpeg' const DEFAULT_COVER = '/embed-default-cover.jpeg'
const cover = reactive({ value: DEFAULT_COVER }) const cover = reactive({ value: DEFAULT_COVER })
const fetchArtistCover = async (id) => { const fetchArtistCover = async (id) => {
@ -381,7 +381,7 @@
class="logo-link" class="logo-link"
tabindex="-1" tabindex="-1"
> >
<img src="logo-white.svg" /> <img src="/logo-white.svg" />
</a> </a>
</template> </template>