trim the homeinstance setting before processing

tests
Lartsch 2022-11-17 15:38:23 +01:00 zatwierdzone przez GitHub
rodzic 6368b8691a
commit 07929d7654
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;