Skip to content

Commit

Permalink
fix: JS syntax (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-christiansen authored Dec 22, 2024
1 parent bc5c64e commit 7d3a46e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/verso-manual/VersoManual/Html.lean
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ configuration. But not all hosts allow this to happen, and most clients have JS
def addSlashJs : String :=
r#"(function(){
const {protocol:proto, host:hostName, pathname:path, search:srch, hash:hsh} = window.location;
if !(path.endsWith("/") || path.endsWith(".html")) {
if (!(path.endsWith("/") || path.endsWith(".html"))) {
window.location.replace(`${proto}//${hostName}${path}/${srch}${hsh}`);
}
})()"#
Expand Down

0 comments on commit 7d3a46e

Please sign in to comment.