Skip to content

Commit

Permalink
Fixing map not hiding every time
Browse files Browse the repository at this point in the history
  • Loading branch information
eyal-sasson committed Sep 28, 2022
1 parent 0ff04d7 commit 6c4aa6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ export class Gate {
}
focus() {
this.map.showLog(false)
document.getElementById("map").classList.add("hidden")
// hide the current focused gate
document.getElementById("map-button").classList.remove("off")
document.querySelectorAll(".pane-buttons").forEach(
Expand Down Expand Up @@ -730,7 +731,6 @@ echo "${fp}" >> ~/.config/webexec/authorized_fingerprints
load() {
this.t7.log("loading gate")
this.session.getPayload().then(layout => this.setLayout(layout))
document.getElementById("map").classList.add("hidden")
Storage.get({key: "first_gate"}).then(v => {
if (v.value != "nope") {
this.t7.toggleHelp()
Expand Down

0 comments on commit 6c4aa6c

Please sign in to comment.