X-Git-Url: https://git-public.kairo.at/?p=tricorder.git;a=blobdiff_plain;f=js%2Ftricorder.js;h=11ec7062bb0e2d4174aef8cf3562089ac3f9d1be;hp=92885dae4b231310554f4ee36c8795553ba6ac6c;hb=b41c095bad1cb176864b6d8e25bcff50faf4634e;hpb=9adf799b4ff4fae3049fac6e03c54340065ae2de;ds=sidebyside 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); };