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

This commit is contained in:
levlam 2021-06-08 19:20:55 +03:00
parent d80b613b55
commit 0c3893737e
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ function onLanguageChanged(initial) {
if (supported_os.length) {
document.getElementById('osSelectDiv').style.display = 'block';
} else {
if (history.state != '') {
if (history.state !== '' && history.state !== null) {
history.pushState('', '', 'build.html');
}
document.getElementById('osSelectDiv').style.display = 'none';