From 6ba44dd2d1e1a1de540fd3345a03652688c228af Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 17 Oct 2025 23:33:31 -0400 Subject: [PATCH] Fix channel banner preload policy --- js/channelProfile.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/channelProfile.js b/js/channelProfile.js index e65ba999..2930bea5 100644 --- a/js/channelProfile.js +++ b/js/channelProfile.js @@ -161,6 +161,12 @@ function preloadBannerImage(url) { if ("loading" in img) { img.loading = img.loading || "eager"; } + if ("referrerPolicy" in img && !img.referrerPolicy) { + img.referrerPolicy = "no-referrer"; + } + if ("crossOrigin" in img && !img.crossOrigin) { + img.crossOrigin = "anonymous"; + } img.onload = () => { resolve(url); };