From 42f7d148b40f72b757448c883431bfca935280a0 Mon Sep 17 00:00:00 2001 From: Zakarya Date: Wed, 29 Jan 2025 17:43:40 -0800 Subject: [PATCH] Change "var" to "let" in bg.ts --- src/script/bg.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/bg.ts b/src/script/bg.ts index a51d056..002ab19 100644 --- a/src/script/bg.ts +++ b/src/script/bg.ts @@ -4,8 +4,8 @@ * when the page finishes loading. (svelte onMount function) /*/ export function createBackground() { - var canvas = document.createElement("canvas") as HTMLCanvasElement; - var ctx = canvas.getContext("2d") as CanvasRenderingContext2D; + let canvas = document.createElement("canvas") as HTMLCanvasElement; + let ctx = canvas.getContext("2d") as CanvasRenderingContext2D; canvas.classList.add("bg-canvas"); document.body.appendChild(canvas); @@ -14,7 +14,7 @@ export function createBackground() { canvas.height = window.innerHeight; } - var dark_theme = false; + let dark_theme = false; if ( window.matchMedia &&