aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/invidious/views/components/player.ecr5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr
index 99f99c58..e2cfa3a1 100644
--- a/src/invidious/views/components/player.ecr
+++ b/src/invidious/views/components/player.ecr
@@ -137,8 +137,6 @@ player.on('error', function(event) {
137 } 137 }
138}); 138});
139 139
140player.share(shareOptions);
141
142<% if params[:video_start] > 0 || params[:video_end] > 0 %> 140<% if params[:video_start] > 0 || params[:video_end] > 0 %>
143player.markers({ 141player.markers({
144 onMarkerReached: function(marker) { 142 onMarkerReached: function(marker) {
@@ -188,4 +186,7 @@ if (bpb) {
188 }); 186 });
189} 187}
190<% end %> 188<% end %>
189
190// Since videojs-share can sometimes be blocked, we try to load it last
191player.share(shareOptions);
191</script> 192</script>