From 4653f77be491970ce552ac5db2f2ea9c13fbe97a Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Mon, 10 Jan 2022 15:33:07 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=99=20Redirect=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - location.replace was running for the app too --- src/scripts/ytContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index 50ea6ac..d267eb8 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -67,7 +67,8 @@ async function redirectTo({ lbryPathname, platfrom, time }: Target) { if (window.history.length === 1) window.close() else window.history.back() } - location.replace(url.toString()) + else + location.replace(url.toString()) } /** Returns a mount point for the button */