diff --git a/js/background.js b/js/background.js index f07d36b..6ce5f34 100644 --- a/js/background.js +++ b/js/background.js @@ -20,7 +20,7 @@ fetch("https://raw.githubusercontent.com/wiki/TeamPiped/Piped-Frontend/Instances let lines = body.split("\n"); lines.map(line => { let split = line.split("|"); - if(split.length == 5) { + if(split.length == 5 && split[0].indexOf(" libre") == -1) { instances.push(split[0]); } }); diff --git a/popup/ui.js b/popup/ui.js index 4ae1aef..9e12ef3 100644 --- a/popup/ui.js +++ b/popup/ui.js @@ -20,7 +20,6 @@ browser.storage.local.get().then(localStorage => { let instanceOption = document.createElement("option"); instanceOption.innerText = instance.trim(); instanceOption.value = "piped." + instance.replace("(Official)", "").trim(); - console.log(instance.replace("(Official)").trim()); instanceSelector.appendChild(instanceOption); }); @@ -50,6 +49,5 @@ instanceSelector.addEventListener("change", () => { action: "instanceChanged", value: instanceSelector.value }); - //console.log(instanceSelector.value); browser.storage.local.set({instance: instanceSelector.value}); }); \ No newline at end of file