From 07929d7654347b573c07d6312fbd1085916e6023 Mon Sep 17 00:00:00 2001 From: Lartsch Date: Thu, 17 Nov 2022 15:38:23 +0100 Subject: [PATCH] trim the homeinstance setting before processing --- inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inject.js b/inject.js index aab5296..8aaf167 100644 --- a/inject.js +++ b/inject.js @@ -215,7 +215,7 @@ function checkSettings() { function run() { // get the extension setting for the users' Mastadon home instance chrome.storage.local.get(['fedifollow_homeinstance'], function(fetchedData) { - instance = fetchedData.fedifollow_homeinstance; + instance = fetchedData.fedifollow_homeinstance.trim(); // and alert setting chrome.storage.local.get(['fedifollow_alert'], function(fetchedData) { showAlert = fetchedData.fedifollow_alert;