mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 10:16:46 +00:00
Fix hassio nav
This commit is contained in:
parent
feb3be1d17
commit
c3f094eb9e
@ -56,7 +56,7 @@ function initialize(panel, properties) {
|
||||
const forwardEvent = (ev) =>
|
||||
window.parent.customPanel.fire(ev.type, ev.detail);
|
||||
root.addEventListener("hass-toggle-menu", forwardEvent);
|
||||
root.addEventListener("location-changed", () =>
|
||||
window.addEventListener("location-changed", () =>
|
||||
window.parent.customPanel.navigate(window.location.pathname)
|
||||
);
|
||||
setProperties(Object.assign({ panel }, properties));
|
||||
|
Loading…
x
Reference in New Issue
Block a user