Skip to content

Commit

Permalink
Merge pull request #1 from fsedarkalex/patch-1
Browse files Browse the repository at this point in the history
reset focus on timeout
  • Loading branch information
fsedarkalex authored Jun 10, 2023
2 parents bff1fee + fe934c2 commit 61e46b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class ViewTimeout {

window.history.pushState("", "", '/'+this.defaultPanelUrl+'/'+this.homeView);
window.cardTools.fireEvent("location-changed", {}, document.querySelector("home-assistant"));
document.querySelector("home-assistant").focus(); //reset the focus
}

urlCheckerStart() {
Expand Down

0 comments on commit 61e46b8

Please sign in to comment.