fix the fallback implementation

This commit is contained in:
Valentin Boettcher 2021-02-21 20:47:30 +01:00
parent 340ad570b6
commit 7252330f87

View file

@ -427,12 +427,14 @@ function serializeNeutrinoData(data) {
function getWindowNeutrinoData() {
const data_string = decodeURI(window.location.href);
const json = data_string.slice(data_string.indexOf("?settings=") + "?settings=".length);
const settings_index = data_string.indexOf("?settings=");
if(!json)
if (settings_index === -1)
return defaultNeutrinoData;
return JSON.parse();
const json = data_string.slice(data_string.indexOf("?settings=") + "?settings=".length);
return JSON.parse(json);
}
let historyTimeout = null;