Skip to content

Commit

Permalink
Hide 'Back' button when it is superfluous on public pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 30, 2021
1 parent 1101039 commit 1054c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/public/templates/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2>{{ .Data.Title }}</h2>
<script>
(function() {
// If there's page history to go back to, show the back button.
if(history && history.length >= 2) {
if(history && history.length >= 3) {
var btn = document.getElementById("btn-back");
btn.style.display = 'inline-block';
btn.onclick = function(e) {
Expand Down

0 comments on commit 1054c01

Please sign in to comment.