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