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
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}