From 53d10a82fb07487f411c0c75dd0d58cc83610fbe Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 4 Nov 2020 13:31:33 +0100 Subject: [locationinfo] Allow seconds in prettytime mode, change eco mode text Eco mode doesn't change any colors anymore currently, it merely lowers the update rate and hides seconds from the countdown. --- modules-available/locationinfo/frontend/frontendscript.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules-available/locationinfo/frontend') diff --git a/modules-available/locationinfo/frontend/frontendscript.js b/modules-available/locationinfo/frontend/frontendscript.js index efe4d5b6..f39f2be8 100644 --- a/modules-available/locationinfo/frontend/frontendscript.js +++ b/modules-available/locationinfo/frontend/frontendscript.js @@ -67,6 +67,9 @@ function GetTimeDiferenceAsString(a, b, globalConfig) { str += hours + 'h '; } str += minutes + 'min '; + if (globalConfig && !globalConfig.eco) { + str += seconds + 's '; + } return str; } -- cgit v1.2.3-55-g7522