lib/volt/volt/client_setup/browser.rb in volt-0.9.4.pre5 vs lib/volt/volt/client_setup/browser.rb in volt-0.9.4
- old
+ new
@@ -92,9 +92,10 @@
# When the page is reloaded from the backend, we store the page collection,
# so we can reload the page in the exact same state. Speeds up development.
def load_stored_page
if Volt.client?
if `sessionStorage`
+ page = Volt.current_app.page
page_obj_str = nil
`page_obj_str = sessionStorage.getItem('___page');`
`if (page_obj_str) {`
`sessionStorage.removeItem('___page');`
\ No newline at end of file