not showing notification when layout is undefined

This commit is contained in:
Jack 2020-08-03 19:14:40 +01:00
parent b14f70251d
commit 15223ba424

View file

@ -2036,7 +2036,7 @@ function startTest() {
} else if (config.mode === "words") {
index = Math.floor(inputHistory.length / (outof / 3));
}
if (config.layout !== layouts[index]) {
if (config.layout !== layouts[index] && layouts[index] !== undefined) {
showNotification(`--- !!! ${layouts[index]} !!! ---`, 3000);
}
changeLayout(layouts[index]);