oTree Forum >

Click back in browser resets the timer

#1 by louaig

Hi all,

We've noticed that on clicking the back button on the browser it resets the clock. It seems like a core bug.
Is there a way of preventing it? 

Maybe I can save the timer on page onload in sessionStorage based on a certain page ID (if such thing exists), and reinitialize it on page load, but will need help in knowing the API of the timer. 

Any help is much appreciated

Write a reply

Set forum username