From 25fee28546edbbcf3d6ecd295d45549e9ddd1b71 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 2 Aug 2018 12:03:33 +0200 Subject: [PATCH] Add message when no JavaScript Add message when JavaScript is not enabled in webbrowser (#3388) --- sonoff/_changelog.ino | 1 + sonoff/xdrv_02_webserver.ino | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index 7dcbd0821..80b426065 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -1,4 +1,5 @@ /* 6.1.1c + * Add message when JavaScript is not enabled in webbrowser (#3388) * Fix sonoff-minimal from using default settings * Add option + to command Rule to concatenate new rule with existing rules (#3365) * Add initial support for sensor MPU6050 (#3352) diff --git a/sonoff/xdrv_02_webserver.ino b/sonoff/xdrv_02_webserver.ino index bcc8b9173..caa002aa4 100644 --- a/sonoff/xdrv_02_webserver.ino +++ b/sonoff/xdrv_02_webserver.ino @@ -131,11 +131,13 @@ const char HTTP_HEAD_STYLE[] PROGMEM = #ifdef BE_MINIMAL "

" D_MINIMAL_FIRMWARE_PLEASE_UPGRADE "

" #endif + "
" #ifdef LANGUAGE_MODULE_NAME - "

" D_MODULE " {ha

{h}

"; + "

" D_MODULE " {ha

" #else - "

{ha " D_MODULE "

{h}

"; + "

{ha " D_MODULE "

" #endif + "

{h}

"; const char HTTP_SCRIPT_CONSOL[] PROGMEM = "var sn=0;" // Scroll position "var id=0;" // Get most of weblog initially