mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-23 04:33:50 +01:00
Fix bug
This commit is contained in:
parent
af21a434f3
commit
2cf311a980
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<iframe v-if="youtubeId" type="text/html" height="250"
|
<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"/>
|
frameborder="0"/>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<a class="mk-url-preview" :href="url" target="_blank" :title="url" v-if="!fetching">
|
<a class="mk-url-preview" :href="url" target="_blank" :title="url" v-if="!fetching">
|
||||||
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
import { url as misskeyUrl } from '../../../config';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: ['url'],
|
props: ['url'],
|
||||||
@ -32,7 +33,8 @@ export default Vue.extend({
|
|||||||
thumbnail: null,
|
thumbnail: null,
|
||||||
icon: null,
|
icon: null,
|
||||||
sitename: null,
|
sitename: null,
|
||||||
youtubeId: null
|
youtubeId: null,
|
||||||
|
misskeyUrl
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
Loading…
Reference in New Issue
Block a user