From 84f02216150deed627e933fba464987a698d3f77 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Fri, 16 Aug 2024 08:49:44 +1000 Subject: [PATCH] Handle offlien GitHub #763 --- front/maintenance.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/front/maintenance.php b/front/maintenance.php index bc34f42e..dc1a4228 100755 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -982,19 +982,21 @@ function renderLogs(customData) { //------------------------------------------------------------------------------ // Init -window.onload = function asyncFooter() -{ +window.onload = function asyncFooter() { initializeSelectedColumns(); renderLogs(); // initializeTabs(); - $("#lastCommit").append('GitHub last commit'); + try { + $("#lastCommit").append('GitHub last commit'); - $("#lastDockerUpdate").append( - 'Docker last pushed'); - -} + $("#lastDockerUpdate").append( + 'Docker last pushed'); + } catch (error) { + console.error('Failed to load GitHub badges:', error); + } +};