Fix Back button in build.html on the main page.

This commit is contained in:
levlam 2021-06-08 19:22:52 +03:00
parent 4eb391decd
commit 29f11170be

View File

@ -121,7 +121,7 @@ function onLoad(initial) {
function onOsChanged(initial) { function onOsChanged(initial) {
var os = document.getElementById('osSelect').value; var os = document.getElementById('osSelect').value;
if (os.includes('Choose ')) { if (os.includes('Choose ')) {
if (history.state != '') { if (history.state !== '' && history.state !== null) {
history.pushState('', '', 'build.html'); history.pushState('', '', 'build.html');
} }