From 3abd570678d2c2497f9c48a1376ee9bd3f136c4d Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Mon, 10 Oct 2022 22:31:47 -0400 Subject: [PATCH] Enable strict mode to throw errors on any undeclared variables. --- ui/media/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/media/main.js b/ui/media/main.js index 57d66500..fea02a09 100644 --- a/ui/media/main.js +++ b/ui/media/main.js @@ -1,3 +1,4 @@ +"use strict" // Opt in to a restricted variant of JavaScript const SOUND_ENABLED_KEY = "soundEnabled" const SAVE_TO_DISK_KEY = "saveToDisk" const USE_CPU_KEY = "useCPU"