From 0e52be1dfd116a1e261794654cd9624ccc719837 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Nov 2019 10:57:26 +0100 Subject: [PATCH] Add auto subtitle to the iframe --- src/views/Home.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/views/Home.vue b/src/views/Home.vue index 8e1dfca..855b008 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -59,7 +59,7 @@
- +
@@ -525,6 +525,13 @@ switchMascot () { this.currentMascot++ this.currentMascot %= this.mascotPaths.length + }, + + getIframeUrl () { + const currentLanguage = this.$language.current.split('_')[0] + const params = '?subtitle=' + currentLanguage + + return 'https://framatube.org/videos/embed/9c9de5e8-0a1e-484a-b099-e80766180a6d' + params } } }