Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-27 10:24:11 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-27 10:24:11 -0700
commit9aada19dbd36f45dc50a2dc745dfc613feac675d (patch)
tree520f744d8e4933cb37717031c1c84920b2d63709 /src/index.js
parentef885b91c2b08af27f5a6dca4172f0ed03677b66 (diff)
Remove calling the gme module with 'new'
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 4ceb5e7..90404d9 100644
--- a/src/index.js
+++ b/src/index.js
@@ -41,7 +41,7 @@ document.querySelector('object').addEventListener('load', function () {
window.addEventListener('load', () => {
const svg = document.querySelector('object').contentDocument.querySelector('svg'),
- game = new Game(svg);
+ game = Game(svg);
window.game = game;