Tabelle nur einmalig beim Laden der Seite
This commit is contained in:
7
app.js
7
app.js
@@ -30,7 +30,10 @@ async function loadPGN(showOverlay = true) {
|
|||||||
hideError();
|
hideError();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await updateStandings();
|
if (!window.standingsLoaded) {
|
||||||
|
await updateStandings();
|
||||||
|
window.standingsLoaded = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (currentRound === 0) {
|
if (currentRound === 0) {
|
||||||
if (showOverlay) showLoading(false);
|
if (showOverlay) showLoading(false);
|
||||||
@@ -63,7 +66,6 @@ async function loadPGN(showOverlay = true) {
|
|||||||
allLaraGames = filterLaraGames(allGames);
|
allLaraGames = filterLaraGames(allGames);
|
||||||
|
|
||||||
if (allLaraGames.length === 0) {
|
if (allLaraGames.length === 0) {
|
||||||
showError('Keine Partien von Lara gefunden.');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +88,6 @@ async function loadPGN(showOverlay = true) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (currentPollId !== pollId) return;
|
if (currentPollId !== pollId) return;
|
||||||
console.error('Fehler beim Laden:', error);
|
console.error('Fehler beim Laden:', error);
|
||||||
showError(`Fehler: ${error.message}`);
|
|
||||||
showLoading(false);
|
showLoading(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user