mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2025-11-19 20:56:31 +00:00
Strip slashes when loading instances
This commit is contained in:
parent
c6363424cb
commit
7c31d04055
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ let globalList = []
|
||||||
|
|
||||||
function execute() {
|
function execute() {
|
||||||
return request("https://api.invidious.io/instances.json?sort_by=health").then(res => res.json()).then(list => {
|
return request("https://api.invidious.io/instances.json?sort_by=health").then(res => res.json()).then(list => {
|
||||||
list = list.filter(i => i[1].type === "https").map(i => i[1].uri)
|
list = list.filter(i => i[1].type === "https").map(i => i[1].uri.replace(/\/+$/, ""))
|
||||||
globalList = list
|
globalList = list
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue