From 4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 5 Jun 2021 21:03:47 +0200 Subject: Stats presque fini --- race/cars/car1.js | 1 + 1 file changed, 1 insertion(+) (limited to 'race/cars/car1.js') 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; -- cgit