Spaces:
Running
Running
Update game.html
Browse files
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 |
|