mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:23:09 +02:00
Fix bug
This commit is contained in:
parent
5d014949be
commit
1e214278c9
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<iframe v-if="youtubeId" type="text/html" height="250"
|
||||
:src="`http://www.youtube.com/embed/${youtubeId}`"
|
||||
:src="`http://www.youtube.com/embed/${youtubeId}?origin=${misskeyUrl}`"
|
||||
frameborder="0"/>
|
||||
<div v-else>
|
||||
<a class="mk-url-preview" :href="url" target="_blank" :title="url" v-if="!fetching">
|
||||
|
@ -21,6 +21,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { url as misskeyUrl } from '../../../config';
|
||||
|
||||
export default Vue.extend({
|
||||
props: ['url'],
|
||||
|
@ -32,7 +33,8 @@ export default Vue.extend({
|
|||
thumbnail: null,
|
||||
icon: null,
|
||||
sitename: null,
|
||||
youtubeId: null
|
||||
youtubeId: null,
|
||||
misskeyUrl
|
||||
};
|
||||
},
|
||||
created() {
|
||||
|
|
Loading…
Reference in a new issue