refactor(plg): console.error for unfound js file

This commit is contained in:
Zack Spear
2023-06-21 14:07:37 -05:00
committed by Zack Spear
parent 49c639c10f
commit a8f4337c25

View File

@@ -83,6 +83,6 @@ if ($fileValue !== null) {
$prefixedPath = '/plugins/dynamix.my.servers/connect-components/';
echo '<script src="' . $prefixedPath . $fileValue . '"></script>';
} else {
echo '<script>console.error("%cNo matching key containing \'' . $searchText . '\' found.", "font-weight: bold; color: white; background-color: red");</script>';
echo '<script>console.error("%cUnraid Connect • No matching key containing \'' . $searchText . '\' found in manfiest.json.", "font-weight: bold; color: white; background-color: red");</script>';
}
?>