From 63ef1565cd5cbcdaf2fdf5ffff32f4513326eb6e Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 31 Dec 2021 13:56:32 +0000 Subject: [PATCH] Update content of files --- data/core.telegram.org/js/main.js | 5 +++-- data/corefork.telegram.org/js/main.js | 5 +++-- data/desktop.telegram.org/js/main.js | 5 +++-- data/instantview.telegram.org/js/main.js | 5 +++-- data/macos.telegram.org/js/main.js | 5 +++-- data/promote.telegram.org.html | 4 ++-- data/promote.telegram.org/auth.html | 4 ++-- data/promote.telegram.org/basics.html | 4 ++-- data/promote.telegram.org/getting-started.html | 4 ++-- data/promote.telegram.org/guidelines.html | 4 ++-- data/promote.telegram.org/js/promote.js | 4 ++-- data/promote.telegram.org/tos.html | 4 ++-- data/telegram.org/js/main.js | 5 +++-- data/tsf.telegram.org/js/main.js | 5 +++-- 14 files changed, 35 insertions(+), 28 deletions(-) diff --git a/data/core.telegram.org/js/main.js b/data/core.telegram.org/js/main.js index 898af98e24..6ce98d7dfc 100644 --- a/data/core.telegram.org/js/main.js +++ b/data/core.telegram.org/js/main.js @@ -388,8 +388,9 @@ function initScrollVideos(desktop) { for (var i = 0; i < pageVideos.length; i++) { var videoEl = pageVideos[i]; videoEl.setAttribute('vindex', index++); - videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto'); - videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto'; + var preloadValue = i >= preloadVideos ? 'metadata' : 'auto'; + videoEl.setAttribute('preload', preloadValue); + videoEl.preload = preloadValue; if (desktop) { videoEl.removeAttribute('controls'); videoEl.autoplay = false; diff --git a/data/corefork.telegram.org/js/main.js b/data/corefork.telegram.org/js/main.js index 898af98e24..6ce98d7dfc 100644 --- a/data/corefork.telegram.org/js/main.js +++ b/data/corefork.telegram.org/js/main.js @@ -388,8 +388,9 @@ function initScrollVideos(desktop) { for (var i = 0; i < pageVideos.length; i++) { var videoEl = pageVideos[i]; videoEl.setAttribute('vindex', index++); - videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto'); - videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto'; + var preloadValue = i >= preloadVideos ? 'metadata' : 'auto'; + videoEl.setAttribute('preload', preloadValue); + videoEl.preload = preloadValue; if (desktop) { videoEl.removeAttribute('controls'); videoEl.autoplay = false; diff --git a/data/desktop.telegram.org/js/main.js b/data/desktop.telegram.org/js/main.js index 898af98e24..6ce98d7dfc 100644 --- a/data/desktop.telegram.org/js/main.js +++ b/data/desktop.telegram.org/js/main.js @@ -388,8 +388,9 @@ function initScrollVideos(desktop) { for (var i = 0; i < pageVideos.length; i++) { var videoEl = pageVideos[i]; videoEl.setAttribute('vindex', index++); - videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto'); - videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto'; + var preloadValue = i >= preloadVideos ? 'metadata' : 'auto'; + videoEl.setAttribute('preload', preloadValue); + videoEl.preload = preloadValue; if (desktop) { videoEl.removeAttribute('controls'); videoEl.autoplay = false; diff --git a/data/instantview.telegram.org/js/main.js b/data/instantview.telegram.org/js/main.js index 898af98e24..6ce98d7dfc 100644 --- a/data/instantview.telegram.org/js/main.js +++ b/data/instantview.telegram.org/js/main.js @@ -388,8 +388,9 @@ function initScrollVideos(desktop) { for (var i = 0; i < pageVideos.length; i++) { var videoEl = pageVideos[i]; videoEl.setAttribute('vindex', index++); - videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto'); - videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto'; + var preloadValue = i >= preloadVideos ? 'metadata' : 'auto'; + videoEl.setAttribute('preload', preloadValue); + videoEl.preload = preloadValue; if (desktop) { videoEl.removeAttribute('controls'); videoEl.autoplay = false; diff --git a/data/macos.telegram.org/js/main.js b/data/macos.telegram.org/js/main.js index 898af98e24..6ce98d7dfc 100644 --- a/data/macos.telegram.org/js/main.js +++ b/data/macos.telegram.org/js/main.js @@ -388,8 +388,9 @@ function initScrollVideos(desktop) { for (var i = 0; i < pageVideos.length; i++) { var videoEl = pageVideos[i]; videoEl.setAttribute('vindex', index++); - videoEl.setAttribute('preload', i >= preloadVideos ? 'metadata' : 'auto'); - videoEl.preload = i >= preloadVideos ? 'metadata' : 'auto'; + var preloadValue = i >= preloadVideos ? 'metadata' : 'auto'; + videoEl.setAttribute('preload', preloadValue); + videoEl.preload = preloadValue; if (desktop) { videoEl.removeAttribute('controls'); videoEl.autoplay = false; diff --git a/data/promote.telegram.org.html b/data/promote.telegram.org.html index 0553cbe103..16703e6df2 100644 --- a/data/promote.telegram.org.html +++ b/data/promote.telegram.org.html @@ -103,13 +103,13 @@ - + - + - + - + - + - + - + - + - + - + - + - +