From b2390e5b544d836fc70180f440ab12b81a936c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 24 Jul 2024 22:30:52 +0300 Subject: [PATCH] Don't add redirects if instance domain is unset --- dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialog.js b/dialog.js index 5138ad9..eee5e3f 100644 --- a/dialog.js +++ b/dialog.js @@ -28,7 +28,7 @@ function updateRedirects(settings) { transform.password = settings.password; } const redirects = []; - if (settings.enabled) { + if (settings.enabled && settings.instance !== '') { redirects.push(createRedirect(1, '||twitter.com', transform)); redirects.push(createRedirect(2, '||x.com', transform)); }