Web Dev Solutions

Catalin Mititiuc

From 9aada19dbd36f45dc50a2dc745dfc613feac675d Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Sat, 27 Apr 2024 10:24:11 -0700 Subject: Remove calling the gme module with 'new' --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.js') 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; -- cgit v1.2.3