From 29f11170be4a49da8fbe2e0c191a56f4fa11bdb3 Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 8 Jun 2021 19:22:52 +0300 Subject: [PATCH] Fix Back button in build.html on the main page. --- build.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.html b/build.html index 7c31d38..338e025 100644 --- a/build.html +++ b/build.html @@ -121,7 +121,7 @@ function onLoad(initial) { function onOsChanged(initial) { var os = document.getElementById('osSelect').value; if (os.includes('Choose ')) { - if (history.state != '') { + if (history.state !== '' && history.state !== null) { history.pushState('', '', 'build.html'); }