mirror of
https://github.com/TeamPiped/Piped-Redirects.git
synced 2024-08-14 23:57:14 +00:00
filter unwanted duplicate
This commit is contained in:
parent
4fffb16f8b
commit
265720bb87
2 changed files with 1 additions and 3 deletions
|
@ -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]);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue