Hide 'Back' button when it is superfluous on public pages.

This commit is contained in:
Kailash Nadh 2021-10-30 12:46:10 +05:30
parent 11010393d8
commit 1054c019ce

View file

@ -13,7 +13,7 @@
<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) {