Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pages/hud_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const handlers = {
show(data) {
const el = document.querySelector("#hud");
el.textContent = data.text;
el.dataset.text = data.text;
el.classList.add("vimium-ui-component-visible");
el.classList.remove("vimium-ui-component-hidden");
el.classList.remove("hud-find");
Expand All @@ -100,6 +101,7 @@ export const handlers = {
// We get a flicker when the HUD later becomes visible again (with new text) unless we reset its
// contents here.
el.textContent = "";
delete el.dataset.text;
el.classList.add("vimium-ui-component-hidden");
el.classList.remove("vimium-ui-component-visible");
},
Expand Down