summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2023-09-27 15:25:29 +0200
committerThomas Lange <code@nerdmind.de>2023-09-27 15:36:40 +0200
commit824cc1a5aa6321936357677e77b6638c96137225 (patch)
tree6163073b80b6f80298345cd7d47f75a18d502ff0 /src
parentbf470704a5a3071cebb1d558efaef8542a16dde6 (diff)
downloadinvidious-824cc1a5aa6321936357677e77b6638c96137225.tar.gz
invidious-824cc1a5aa6321936357677e77b6638c96137225.tar.bz2
invidious-824cc1a5aa6321936357677e77b6638c96137225.zip
Don't redefine the "preload" option in player.js
If the HTML5 "<video>" element defines the "preload" attribute directly, it isn't necessary to redefine the "preload" option in the player.js.
Diffstat (limited to 'src')
-rw-r--r--src/invidious/views/components/player.ecr3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr
index f72fd9de..5c28358b 100644
--- a/src/invidious/views/components/player.ecr
+++ b/src/invidious/views/components/player.ecr
@@ -74,8 +74,7 @@
"title" => video.title,
"description" => HTML.escape(video.short_description),
"thumbnail" => thumbnail,
- "preferred_caption_found" => !preferred_captions.empty?,
- "preload" => params.preload ? "auto" : "none"
+ "preferred_caption_found" => !preferred_captions.empty?
}.to_pretty_json
%>
</script>