mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
Added support for alternative update servers. (#6645)
This commit is contained in:
parent
50631475f9
commit
4891243c27
6 changed files with 21 additions and 2 deletions
|
@ -107,6 +107,7 @@ exports.ttl = {
|
|||
RefreshToken: 1 * 24 * 60 * 60, // 1 day in seconds
|
||||
}
|
||||
|
||||
exports.updateServer = "https://static.etherpad.org"
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -20,7 +20,7 @@ const loadEtherpadInformations = () => {
|
|||
return infos;
|
||||
}
|
||||
|
||||
return axios.get('https://static.etherpad.org/info.json', {headers: headers})
|
||||
return axios.get(`${settings.updateServer}/info.json`, {headers: headers})
|
||||
.then(async (resp: any) => {
|
||||
infos = await resp.data;
|
||||
if (infos === undefined || infos === null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue