Implement review feedback

This commit is contained in:
Daniel
2020-10-30 11:54:00 +01:00
parent ed00e1fe83
commit fa3f873c31
7 changed files with 64 additions and 28 deletions

View File

@@ -227,11 +227,8 @@ func setCaptivePortal(portalURL *url.URL) {
// notify
cleanUpPortalNotification()
// TODO: add "open" button
captivePortalNotification = notifications.Notify(&notifications.Notification{
EventID: fmt.Sprintf(
"netenv:captive-portal:%s", captivePortal.Domain,
),
EventID: "netenv:captive-portal",
Type: notifications.Info,
Title: "Captive Portal",
Category: "Core",
@@ -239,6 +236,7 @@ func setCaptivePortal(portalURL *url.URL) {
"Portmaster detected a captive portal at %s",
captivePortal.Domain,
),
EventData: captivePortal,
})
}