From 6509c7deb79bf6da8b80b330cbe3826fea3bd4fb Mon Sep 17 00:00:00 2001 From: Magnus Pfeffer Date: Mon, 6 Jul 2015 19:14:59 +0200 Subject: [PATCH] Detect warning sign in mobile view correctly. --- src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.js b/src/app.js index 3414168..bdde73f 100644 --- a/src/app.js +++ b/src/app.js @@ -100,6 +100,9 @@ ajax( if (/faellt.aus/i.test(info)) { info = "X!"; } + else if (/achtung/i.test(info)) { + info = "W!"; + } else if (/(.+?)<\/span>/i.test(info)) { var re2 = /(.+?)<\/span>/i; var arr2 = re2.exec(info);