aboutsummaryrefslogtreecommitdiff
path: root/race/cars/car1.js
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-06-05 21:03:47 +0200
committerMinteck <nekostarfan@gmail.com>2021-06-05 21:03:47 +0200
commit4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2 (patch)
tree5b302015939c129ea7fdffc9560fdd89e2547039 /race/cars/car1.js
parent97ebd65491420363f74ae9e5e6bf77495a37172f (diff)
downloadkartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.tar.gz
kartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.tar.bz2
kartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.zip
Stats presque fini
Diffstat (limited to 'race/cars/car1.js')
-rw-r--r--race/cars/car1.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/race/cars/car1.js b/race/cars/car1.js
index 750cbb3..0c4c9f0 100644
--- a/race/cars/car1.js
+++ b/race/cars/car1.js
@@ -113,6 +113,7 @@ startHooks.push(() => {
if (location.search === "?sp") {
scenar("won2", "happy");
}
+ require('electron').ipcRenderer.send('addstats', { catalog: "results", key: "loses", add: 1 });
try { document.getElementById('music').src = "about:blank"; } catch (e) { console.error(e); }
Sound.win();
keysEnabled = false;