State can be empty
This commit is contained in:
parent
98a0792a82
commit
589751de2b
|
@ -1430,6 +1430,8 @@ export default {
|
||||||
},
|
},
|
||||||
onpopstate(event) {
|
onpopstate(event) {
|
||||||
var state = event.state;
|
var state = event.state;
|
||||||
|
if (!state) return;
|
||||||
|
|
||||||
this.mode = state.mode;
|
this.mode = state.mode;
|
||||||
this.zoom = state.zoom;
|
this.zoom = state.zoom;
|
||||||
this.search_text = state.search_text;
|
this.search_text = state.search_text;
|
||||||
|
|
Loading…
Reference in a new issue