mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Rename unifi_console info widget to unifi
This commit is contained in:
@@ -17,11 +17,11 @@ async function getWidget(req) {
|
||||
const { group, service, type } = req.query;
|
||||
|
||||
let widget = null;
|
||||
if (type === "unifi_console") {
|
||||
if (type === "unifi") {
|
||||
const settings = getSettings();
|
||||
widget = settings.unifi_console;
|
||||
widget = settings.unifi;
|
||||
if (!widget) {
|
||||
logger.debug("There is no unifi_console section in settings.yaml");
|
||||
logger.debug("There is no unifi section in settings.yaml");
|
||||
return null;
|
||||
}
|
||||
widget.type = "unifi";
|
||||
|
||||
Reference in New Issue
Block a user