commit df130f0d42fad3324f17ed5a4f44883541efb928
parent b2602958b81c3301c22983be76ff1dd06faf64b3
Author: Leah Thein <leah@toaster.fritz.box>
Date: Fri, 4 Dec 2020 17:41:41 +0100
parent b2602958b81c3301c22983be76ff1dd06faf64b3
Author: Leah Thein <leah@toaster.fritz.box>
Date: Fri, 4 Dec 2020 17:41:41 +0100
fix for safari
3 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/assets/js/journey.js b/assets/js/journey.js @@ -6,4 +6,10 @@ registerLoaderOnLinks(); window.onbeforeunload = function(e) { hideOverlay(); -}- \ No newline at end of file +} + +window.onpageshow = function(event) { + if (event.persisted) { + hideOverlay(); + } +};+ \ No newline at end of file
diff --git a/assets/js/journeys.js b/assets/js/journeys.js @@ -24,4 +24,10 @@ registerLoaderOnLinks(); window.onbeforeunload = function(e) { hideOverlay(); -}- \ No newline at end of file +} + +window.onpageshow = function(event) { + if (event.persisted) { + hideOverlay(); + } +};+ \ No newline at end of file
diff --git a/assets/js/search.js b/assets/js/search.js @@ -104,3 +104,9 @@ ElementById('go').addEventListener('click', () => { window.onbeforeunload = function(e) { hideOverlay(); } + +window.onpageshow = function(event) { + if (event.persisted) { + hideOverlay(); + } +};+ \ No newline at end of file