🚨 Made eslint happy

This commit is contained in:
Mawoka
2022-04-10 13:24:05 +02:00
parent 04b6f76e52
commit c9fc4ce67f
4 changed files with 9 additions and 8 deletions
+1
View File
@@ -58,6 +58,7 @@
throw new Error('Failed to start game');
}
const data = await res.json();
// eslint-disable-next-line no-undef
plausible('Started Game', { props: { quiz_id: id } });
window.location.replace(`/admin?token=${data.game_id}&pin=${data.game_pin}&connect=1`);
};
+1 -1
View File
@@ -60,6 +60,7 @@
socket.on('joined_game', (data) => {
console.log('joined_game', data);
gameData = JSON.parse(data);
// eslint-disable-next-line no-undef
plausible('Joined Game', { props: { quiz_id: gameData.quiz_id } });
});
@@ -86,7 +87,6 @@
final_results = data;
});
// The rest
console.log(final_results, JSON.stringify(final_results) !== JSON.stringify([null]));
</script>
<svelte:head>