Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
Fix #193, reload popup so text box contents aren't preserved
Browse files Browse the repository at this point in the history
Previously we just used location.reload(), which left the text field in-tact (with the old query)
  • Loading branch information
ianb committed Sep 19, 2019
1 parent 5f5802b commit c296f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/popup/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ this.ui = (function() {
function listenForBack() {
const backIcon = document.getElementById("back-icon");
backIcon.addEventListener("click", () => {
location.reload();
location.href = `${location.pathname}?${Date.now()}`;
});
}

Expand Down

0 comments on commit c296f99

Please sign in to comment.