mendeld commited on
Commit
4bfabfc
·
verified ·
1 Parent(s): 27c4b11

Update game.html

Browse files
Files changed (1) hide show
  1. game.html +5 -0
game.html CHANGED
@@ -13,6 +13,11 @@
13
  <body>
14
  <canvas id="game" width="800" height="600"></canvas>
15
  <script>
 
 
 
 
 
16
  const canvas = document.getElementById('game');
17
  const ctx = canvas.getContext('2d');
18
 
 
13
  <body>
14
  <canvas id="game" width="800" height="600"></canvas>
15
  <script>
16
+ if (
17
+ localStorage.getItem("loggedIn") !== "true"
18
+ ) {
19
+ window.location.href = "index.html";
20
+ }
21
  const canvas = document.getElementById('game');
22
  const ctx = canvas.getContext('2d');
23