Added support for alternative update servers. (#6645)

This commit is contained in:
SamTV12345 2024-09-09 20:47:45 +02:00 committed by GitHub
parent 50631475f9
commit 4891243c27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 21 additions and 2 deletions

View file

@ -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;