summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAcid Chicken (硫酸鶏) <root@acid-chicken.com>2018-12-12 21:19:52 +0900
committerGitHub <noreply@github.com>2018-12-12 21:19:52 +0900
commitf3ee63fcbed85a357429e3639bdd82ca01c8c994 (patch)
tree17078102eea9295d1b36611600beab7d2b6911ef /src
parentNo @ for account name (#3586) (diff)
downloadsharkey-f3ee63fcbed85a357429e3639bdd82ca01c8c994.tar.gz
sharkey-f3ee63fcbed85a357429e3639bdd82ca01c8c994.tar.bz2
sharkey-f3ee63fcbed85a357429e3639bdd82ca01c8c994.zip
Update url-preview.vue (#3602)
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/url-preview.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/url-preview.vue b/src/client/app/common/views/components/url-preview.vue
index 86489cf8be..2cd0f8a745 100644
--- a/src/client/app/common/views/components/url-preview.vue
+++ b/src/client/app/common/views/components/url-preview.vue
@@ -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;