Skip to content

Commit

Permalink
Added warning about iOS issue (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Udo Giacomozzi committed Nov 29, 2016
1 parent 6be0c3d commit 4c5d424
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
export default (iOS ? WakeLockIOS : WakeLockAndroid);


if (console.warn) {
console.warn("Warning: <WakeLock> will abort any HTTP requests every 15" +
" seconds on iOS - see https://github.com/jampy/react-wakelock/issues/1");
}

0 comments on commit 4c5d424

Please sign in to comment.