Added support for alternative update servers.

This commit is contained in:
SamTV12345 2024-09-09 20:47:27 +02:00
parent 50631475f9
commit 45bddeed79
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;