From a41b51e454a3325b6921343aac5045b95cc1ba54 Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Tue, 9 Aug 2022 22:44:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=A3=20handle=20unexpected=20location.r?= =?UTF-8?q?eplace=20behavior?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scripts/ytContent.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scripts/ytContent.tsx b/src/scripts/ytContent.tsx index 5c2148c..21e1d20 100644 --- a/src/scripts/ytContent.tsx +++ b/src/scripts/ytContent.tsx @@ -357,6 +357,11 @@ import { getExtensionSettingsAsync, getSourcePlatfromSettingsFromHostname, getTa if (window.history.length === 1) { location.replace(lbryURL) + + // Some extensions such as Firefox Multi-Account Containers, opens new tab for Odysee even though we say replace + // In those cases if the window is still active after 2 seconds we close it manually + await sleep(2000) + window.close() } else {