Skip to content

Commit

Permalink
optimize hassio replace mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelylain committed Dec 7, 2024
1 parent f3d83dd commit c1bf0b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ha-panel-ingress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ class HaPanelIngress extends HTMLElement {
}

if (urlParams.has("replace")) {
if (addonSlug) {
targetUrl = `/files/ingress/iframe.html?ingress=${encodeURIComponent(targetUrl)}`;
}
window.location.href = targetUrl;
} else if (config.ui_mode === "replace") {
if (targetUrl.indexOf("://") !== -1) {
Expand Down

0 comments on commit c1bf0b8

Please sign in to comment.