From 4c5d42495ab0c82c0d7bf4077c92cd42e2453b91 Mon Sep 17 00:00:00 2001 From: Udo Giacomozzi Date: Tue, 29 Nov 2016 09:43:25 +0100 Subject: [PATCH] Added warning about iOS issue (#1) --- src/index.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.jsx b/src/index.jsx index 20961b6..14bd25b 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -4,4 +4,10 @@ import WakeLockIOS from './ios'; // http://stackoverflow.com/a/9039885 const iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; -export default (iOS ? WakeLockIOS : WakeLockAndroid); \ No newline at end of file +export default (iOS ? WakeLockIOS : WakeLockAndroid); + + +if (console.warn) { + console.warn("Warning: will abort any HTTP requests every 15" + + " seconds on iOS - see https://github.com/jampy/react-wakelock/issues/1"); +} \ No newline at end of file