From 8c5f15e64e645be249b1e4421b741dc2f321f9e4 Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Sun, 16 Aug 2020 17:35:31 +0200 Subject: [PATCH] Fix webapp error when live-api is disabled --- BlueMapCore/src/main/webroot/js/libs/hud/MarkerManager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BlueMapCore/src/main/webroot/js/libs/hud/MarkerManager.js b/BlueMapCore/src/main/webroot/js/libs/hud/MarkerManager.js index ec15a1d2..4ef3fa71 100644 --- a/BlueMapCore/src/main/webroot/js/libs/hud/MarkerManager.js +++ b/BlueMapCore/src/main/webroot/js/libs/hud/MarkerManager.js @@ -25,6 +25,9 @@ export default class MarkerManager { }), this.checkLiveAPI() .then(this.initializePlayerMarkers) + .catch(ignore => { + if (this.blueMap.debugInfo) console.debug("Failed load live-players:", ignore); + }) ]) .then(this.loadMarkers) .then(this.updatePlayerMarkerLoop);