Update url-preview.vue (#3602)

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-12-12 21:19:52 +09:00 committed by GitHub
parent 7645c212a3
commit f3ee63fcbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,9 @@ export default Vue.extend({
return; return;
} }
if (url.hostname === 'music.youtube.com')
url.hostname = 'youtube.com';
fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => { fetch(`/url?url=${encodeURIComponent(this.url)}`).then(res => {
res.json().then(info => { res.json().then(info => {
if (info.url == null) return; if (info.url == null) return;