mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -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
|
@ -171,7 +171,7 @@ export const getAvailablePlugins = (maxCacheAge: number|false) => {
|
|||
return resolve(availablePlugins);
|
||||
}
|
||||
|
||||
await axios.get('https://static.etherpad.org/plugins.json', {headers})
|
||||
await axios.get(`${settings.updateServer}/plugins.json`, {headers})
|
||||
.then((pluginsLoaded:AxiosResponse<MapArrayType<PackageInfo>>) => {
|
||||
availablePlugins = pluginsLoaded.data;
|
||||
cacheTimestamp = nowTimestamp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue