diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-08-25 16:48:17 -0600 |
commit | 773ce84f4bf559337e132edd7fcce02a0a2598fd (patch) | |
tree | 5fd0b452b459cc5a5b6a1ed98f2d7b9af950864d /client/src/components/GameCanvas.svelte | |
parent | dec7b614d895a1b507137e4a96a8999ff63aa179 (diff) | |
download | jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.tar.gz jumpstorm-773ce84f4bf559337e132edd7fcce02a0a2598fd.zip |
prettier formatting
Diffstat (limited to 'client/src/components/GameCanvas.svelte')
-rw-r--r-- | client/src/components/GameCanvas.svelte | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/client/src/components/GameCanvas.svelte b/client/src/components/GameCanvas.svelte index ed16f33..ea7dd15 100644 --- a/client/src/components/GameCanvas.svelte +++ b/client/src/components/GameCanvas.svelte @@ -3,7 +3,7 @@ import { loadAssets } from "@engine/config"; import { Game } from "@engine/Game"; import { JumpStorm } from "../JumpStorm"; - + let canvas: HTMLCanvasElement; let ctx: CanvasRenderingContext2D; @@ -19,8 +19,7 @@ const game = new Game(); const jumpStorm = new JumpStorm(game); - const url = new URL(document.location); - await jumpStorm.init(ctx, "http", "ws", url.host + "/api"); + await jumpStorm.init(ctx, "http", "ws", document.location.host + "/api"); jumpStorm.play(); }); </script> |