Skip to content

Commit

Permalink
iOS: don't change to a different page URL, "reload" the same URL
Browse files Browse the repository at this point in the history
based on suggestion in richtr/NoSleep.js#12
  • Loading branch information
Udo Giacomozzi committed Nov 29, 2016
1 parent ae28aff commit 6be0c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let WakeLockIOS = React.createClass({
this.timer = setInterval(() => {

if (!document.hidden) { // gh-richtr/NoSleep.js#25
location.href = '/';
location.href = location.href; // gh-richtr/NoSleep.js#12
setTimeout(window.stop, 0);
}

Expand Down

0 comments on commit 6be0c3d

Please sign in to comment.