This commit is contained in:
Mawoka
2022-10-06 17:45:57 +02:00
parent 39e2d55248
commit ebedbb81e4
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -10,6 +10,7 @@
import * as Sentry from '@sentry/browser';
import { alertModal } from '../stores';
import { getLocalization } from '$lib/i18n';
import Cookies from 'js-cookie';
const { t } = getLocalization();
export let game_pin: string;
@@ -89,6 +90,10 @@
return;
}
let captcha_resp: string;
if (Cookies.get('kicked')) {
console.log("%cYou're Banned!", 'font-size:6rem');
return;
}
if (captcha_enabled) {
if (hcaptchaSitekey) {
+2
View File
@@ -10,6 +10,7 @@
import ShowEndScreen from '$lib/play/end.svelte';
import KahootResults from '$lib/play/results_kahoot.svelte';
import { getLocalization } from '$lib/i18n';
import Cookies from 'js-cookie';
const { t } = getLocalization();
@@ -108,6 +109,7 @@
preventReload = false;
game_pin = '';
username = '';
Cookies.set('kicked', 'value', { expires: 1 });
window.location.reload();
});
socket.on('final_results', (data) => {