- From: Ilkka Oksanen via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 02 Sep 2010 14:31:47 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/camera In directory hutz:/tmp/cvs-serv10064 Modified Files: Overview-API.html Log Message: Fixed example. Index: Overview-API.html =================================================================== RCS file: /sources/public/2009/dap/camera/Overview-API.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Overview-API.html 2 Sep 2010 08:22:07 -0000 1.16 +++ Overview-API.html 2 Sep 2010 14:31:44 -0000 1.17 @@ -69,7 +69,11 @@ } function error(err) { - alert(err.message + " (" + err.code + ")"); + + if (err.code === err.CAPTURE_INTERNAL_ERR) { + alert("The capture failed due to an internal error"); + } + } navigator.device.captureImage(success, error, { maxNumberOfMediaFiles: 1 });
Received on Thursday, 2 September 2010 14:31:48 UTC