mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Add server setting for local instance origin
This commit is contained in:
parent
6603358816
commit
0424996e31
2 changed files with 5 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ class Refresher {
|
|||
}
|
||||
|
||||
refreshChannel(ucid) {
|
||||
return fetch(`http://localhost:3000/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
|
||||
return fetch(`${constants.server_setup.local_instance_origin}/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
|
||||
if (Array.isArray(root)) {
|
||||
root.forEach(video => {
|
||||
// organise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue