From 5ba2420033e6926359afd814d7f535a273d8ae2b Mon Sep 17 00:00:00 2001 From: Doruk Eker Date: Thu, 19 Feb 2015 15:18:24 +0100 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 745ba00..174dcd3 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,12 @@ Access the values in the callback function of the `gn.start()` }); -###Backward Compatibility +###Older devices +In some of the older devices the polyfill for the JS Promises does not work properly. This might cause all or a part of your JavaScript code to break. Try adding the following line before you instantiate GyroNorm. + + var Promise = Promise || ES6Promise.Promise; + +###Backward compatibility There are some breaking changes from 1.x to 2.x versions. You can find the details [here](https://github.com/dorukeker/gyronorm.js/wiki/Breaking-changes-from-1.x-to-2.x). ###Options @@ -77,7 +82,7 @@ You can pass arguments as an object to the `init()` function. The values you pas [gyronorm.js API Documentation](https://github.com/dorukeker/gyronorm.js/wiki/API-Documentaion) -##Error Handling +##Error handling gyronorm.js can return errors and log messages. You need to define a function to handle those message.