From 1748a2655c36fff2c164937a60c8b865d65fb30e Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Tue, 11 Jun 2019 14:45:08 +0200 Subject: [PATCH] Update xdrv_01_webserver.ino Adapt Monty Python: Every byte is sacred --- sonoff/xdrv_01_webserver.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index f16142cb9..286d568f8 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -63,10 +63,10 @@ const char HTTP_HEAD[] PROGMEM = "}" "function sp(i){" // Toggle password visibility "var x=eb(i);" - "if(x.type==='password'){" - "x.type='text';" - "}else{" + "if(x.type==='text'){" "x.type='password';" + "}else{" + "x.type='text';" "}" "}" // https://www.htmlgoodies.com/beyond/javascript/article.php/3724571/Using-Multiple-JavaScript-Onload-Functions.htm