Ad
  • Custom User Avatar

    I commented above, but a great solution to this is using some form of localStorage with a timer-fired event that saves the current kata's source. Then, if this happens (as it's happened to me a million times!), navigating back to the page should restore the source from the localStorage.