Add &$extraFooterScripts to support data usage graph

This commit is contained in:
billz
2025-03-23 00:27:39 -07:00
parent 85663341eb
commit 4d0de82986

View File

@@ -7,7 +7,7 @@ require_once 'includes/functions.php';
/**
* Displays the dashboard
*/
function DisplayDashboard(): void
function DisplayDashboard(&$extraFooterScripts): void
{
// instantiate RaspAP objects
$system = new \RaspAP\System\Sysinfo;
@@ -123,6 +123,7 @@ function DisplayDashboard(): void
"status"
)
);
$extraFooterScripts[] = array('src'=>'app/js/dashboardchart.js', 'defer'=>false);
}
/**