From e10e343b3bfca57bdf7f022742c159b890ec171b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20P?= Date: Sat, 18 Sep 2021 11:33:41 +0200 Subject: [PATCH] Go back with history.go(-1)... --- js/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui.js b/js/ui.js index 38a3841..60e8e10 100644 --- a/js/ui.js +++ b/js/ui.js @@ -54,7 +54,7 @@ if (window.location.href.includes('video')) { close.addEventListener('click', () => { // If referred from interactive map, shouldn't // just go back... - history.back(); + window.history.go(-1); }); let source = document.querySelector('source');