chore: some code comments

This commit is contained in:
Ayo 2022-11-28 08:32:23 +01:00
parent 35832ebc31
commit 62abaf6290
2 changed files with 4 additions and 1 deletions

View file

@ -6,10 +6,10 @@ import {
} from './modules'; } from './modules';
import { levels } from './levels.js'; import { levels } from './levels.js';
const TEST_MODE = true; // set to true if you want to test the game with visual hints and separate leaderboard
const VERSION = "0.3.12"; const VERSION = "0.3.12";
const MOBILE_BUSY_DELAY = 250; const MOBILE_BUSY_DELAY = 250;
const PC_BUSY_DELAY = 500; const PC_BUSY_DELAY = 500;
const TEST_MODE = false;
const CASUAL_MODE = false; const CASUAL_MODE = false;
export const Minesweeper = function(appId) { export const Minesweeper = function(appId) {

View file

@ -3,6 +3,9 @@ import 'firebase/firestore';
export class DatabaseService { export class DatabaseService {
constructor() { constructor() {
// keys to interact with firebase
// not a secret: https://stackoverflow.com/questions/37482366/is-it-safe-to-expose-firebase-apikey-to-the-public/37484053#37484053
// but better moved to an environment variable
const config = { const config = {
apiKey: "AIzaSyAbDzNHCSFh59e3r5sZA4_2ZHJnJ6SCCxM", apiKey: "AIzaSyAbDzNHCSFh59e3r5sZA4_2ZHJnJ6SCCxM",
authDomain: "moment-188701.firebaseapp.com", authDomain: "moment-188701.firebaseapp.com",