Skip to content

Commit

Permalink
Make preview window clear old highlights when it reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
curiositry committed Jan 5, 2025
1 parent ba53f7b commit c0542f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ <h2>Go advanced!</h2>
}
let output = url + "#:~:text=" + prefix + text + suffix;

document.getElementById("preview").src = '';
document.getElementById("preview").src = output;
document.getElementById("output").innerHTML = output;
document.getElementById("output").href = output;
Expand Down

0 comments on commit c0542f1

Please sign in to comment.