don't send game if test_mode

This commit is contained in:
Ayo 2020-04-02 22:14:20 +08:00
parent 067132b92b
commit cfc4678abd

View file

@ -526,7 +526,11 @@ export const Minesweeper = function() {
time_stamp: new Date(), time_stamp: new Date(),
isMobile isMobile
} }
leaderBoard.send(game, 'time');
if (!TEST_MODE) {
leaderBoard.send(game, 'time');
}
// send google analytics event // send google analytics event
if (gtag) { if (gtag) {
gtag('event', 'mw-event', { gtag('event', 'mw-event', {