mirror of
https://github.com/knadh/listmonk.git
synced 2025-12-05 16:00:03 +01:00
Hide 'Back' button when it is superfluous on public pages.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user