[F] Fix history state null pointer

This commit is contained in:
Hykilpikonna
2019-12-21 20:47:11 -05:00
parent db12a5b9e7
commit 984fa394a5
+1 -1
View File
@@ -19,7 +19,7 @@ export default class NavController
constructor()
{
// Check history from last session
if (window.history.state.hash == undefined)
if (window.history.state == undefined || window.history.state.hash == undefined)
{
// Set history state
let url = '/' + window.location.hash;