From 9d3a32a636d0a844ce5385b2b421dabc74b4d94c Mon Sep 17 00:00:00 2001 From: David Date: Fri, 9 Sep 2022 04:24:46 -0700 Subject: [PATCH] Detect Animation only for mediaProxy Works without, but this should suppress CORS browser errors --- src/components/still-image/still-image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js index 3111e5bd..480de9fa 100644 --- a/src/components/still-image/still-image.js +++ b/src/components/still-image/still-image.js @@ -43,11 +43,12 @@ const StillImage = { this.isAnimated = true return } + // harmless CORS errors without-- clean console with + if (!this.$store.state.instance.mediaProxyAvailable) return // Animated JPEGs? if (!(this.src.endsWith('.webp') || this.src.endsWith('.png'))) return // Browser Cache should ensure image doesn't get loaded twice if cache exists fetch(image.src, { - mode: 'cors', referrerPolicy: 'same-origin' }) .then(data => {