From defceed696b2b12e9b5dae6438c64063f03c7547 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 6 Jan 2021 17:24:42 -0800 Subject: [PATCH] Fix homepage server status when sections are disabled --- data/interfaces/default/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index 29f958e8..e0f6fc73 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -280,22 +280,32 @@ var error_msg = 'There was an error communicating with your Plex Server.' + msg_settings; + % if 'current_activity' in config['home_sections'] or 'recently_added' in config['home_sections']: var server_status; server_status = setInterval(function() { $.getJSON('server_status', function (data) { if (data.connected === true) { clearInterval(server_status); + % if 'current_activity' in config['home_sections']: $('#currentActivity').html('