From 589751de2bb43c8cb5d5a3b7abacf839c017f153 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 16 Jul 2021 11:59:28 +0200 Subject: [PATCH] State can be empty --- frontend/App.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/App.vue b/frontend/App.vue index fd153fc..2e0c49d 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -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;