mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 20:43:52 -06:00
fix: re-tries for updateLayerList()
This commit is contained in:
parent
c3767bce85
commit
07e3bebbce
@ -1048,6 +1048,12 @@ export default class MapVote extends DiscordBasePlugin {
|
||||
async updateLayerList() {
|
||||
// Layers.layers = [];
|
||||
|
||||
if (!Layers.layers instanceof Array) {
|
||||
this.verbose(1, `Could not update layer list. Re-trying in 1 second.`)
|
||||
setTimeout(this.updateLayerList, 1000);
|
||||
return;
|
||||
}
|
||||
|
||||
this.verbose(1, 'Pulling updated layer list...');
|
||||
const response = await axios.get(
|
||||
'https://raw.githubusercontent.com/Squad-Wiki/squad-wiki-pipeline-map-data/master/completed_output/_Current%20Version/finished.json'
|
||||
|
Loading…
x
Reference in New Issue
Block a user