From 12d2af3b9c1347ebbee2f374ace8e3f3a4acc7f0 Mon Sep 17 00:00:00 2001 From: younesaassila <47226184+younesaassila@users.noreply.github.com> Date: Sat, 21 Sep 2024 12:57:06 +0200 Subject: [PATCH] Improve purple screen logging --- src/background/handlers/onBeforeVideoWeaverRequest.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/background/handlers/onBeforeVideoWeaverRequest.ts b/src/background/handlers/onBeforeVideoWeaverRequest.ts index c0d2427..9eba3c7 100644 --- a/src/background/handlers/onBeforeVideoWeaverRequest.ts +++ b/src/background/handlers/onBeforeVideoWeaverRequest.ts @@ -34,7 +34,9 @@ export default function onBeforeVideoWeaverRequest( if (isDuplicate) return text; const channelName = findChannelFromVideoWeaverUrl(details.url); - const isPurpleScreen = textLower.includes("https://help.twitch.tv/"); + const isPurpleScreen = + textLower.includes("https://example.com") && + textLower.includes("https://help.twitch.tv/"); const proxy = details.proxyInfo && details.proxyInfo.type !== "direct" ? getUrlFromProxyInfo(details.proxyInfo)