From b41c095bad1cb176864b6d8e25bcff50faf4634e Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Sun, 8 Feb 2015 23:06:21 +0100 Subject: [PATCH] fix syntax for foundFlashCamera function --- js/tricorder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tricorder.js b/js/tricorder.js index 92885da..11ec706 100644 --- a/js/tricorder.js +++ b/js/tricorder.js @@ -340,7 +340,7 @@ var gModEnv = { document.getElementById("envFlashAvail").style.display = "none"; } }, - foundFlashCamera(aCamera) { + foundFlashCamera: function(aCamera) { this.flashCamera = aCamera; document.getElementById("envFlashOn").onclick = function() { console.log("on"); gModEnv.switchFlashlight(true); }; document.getElementById("envFlashOff").onclick = function() { console.log("off"); gModEnv.switchFlashlight(false); }; -- 2.43.0