From a71c5dcda048dde7ac66b56fd2556844d3f5de37 Mon Sep 17 00:00:00 2001 From: Doruk Eker Date: Tue, 11 Aug 2015 20:05:14 +0200 Subject: [PATCH] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5b8d2bd..76a0b66 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ Access the values in the callback function of the `gn.start()` // data.dm.beta ( devicemotion event rotationRate beta value ) // data.dm.gamma ( devicemotion event rotationRate gamma value ) }); + }).catch(function(e){ + // Catch if the DeviceOrientation or DeviceMotion is not supported by the browser or device }); ```