State can be empty

This commit is contained in:
Edward Betts 2021-07-16 11:59:28 +02:00
parent 98a0792a82
commit 589751de2b

View file

@ -1430,6 +1430,8 @@ export default {
},
onpopstate(event) {
var state = event.state;
if (!state) return;
this.mode = state.mode;
this.zoom = state.zoom;
this.search_text = state.search_text;