From 15223ba424270fcb34d1d8e9189727b5967cc7cb Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 3 Aug 2020 19:14:40 +0100 Subject: [PATCH] not showing notification when layout is undefined --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index c64e0825b..56207eeac 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -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]);