Update url-preview.vue (#3602)

This commit is contained in:
Acid Chicken (硫酸鶏) 2018-12-12 21:19:52 +09:00 committed by GitHub
parent 4a22b01ea0
commit 535e37e409

View file

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