mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04:00
Added authentication to axios.defaults.proxy
This commit is contained in:
parent
77792a5f7f
commit
d62d5a0460
4 changed files with 15 additions and 5 deletions
|
@ -172,12 +172,14 @@ export const getAvailablePlugins = (maxCacheAge: number|false) => {
|
|||
}
|
||||
|
||||
await axios.get(`${settings.updateServer}/plugins.json`, {headers})
|
||||
.then((pluginsLoaded:AxiosResponse<MapArrayType<PackageInfo>>) => {
|
||||
.then((pluginsLoaded: AxiosResponse<MapArrayType<PackageInfo>>) => {
|
||||
availablePlugins = pluginsLoaded.data;
|
||||
cacheTimestamp = nowTimestamp;
|
||||
resolve(availablePlugins);
|
||||
})
|
||||
.catch(async (err) => reject(err));
|
||||
.catch(async (err) => {
|
||||
logger.error(`Error fetching available plugins: ${err}`);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue