aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorValentin Gagarin <valentin.gagarin@tweag.io>2022-09-09 09:54:24 +0200
committerValentin Gagarin <valentin.gagarin@tweag.io>2022-09-09 09:54:24 +0200
commit8dd5ba2f472172eb1a8a8df31715726cc53d6344 (patch)
tree264946637b8cb5eff38a233d9b8b69305700cbc9 /doc/manual
parent548c904d4007bbf6d03ebe06d700af0b96e976f1 (diff)
more precise variable types
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/redirects.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/manual/redirects.js b/doc/manual/redirects.js
index af3fc8782..d9b27d866 100644
--- a/doc/manual/redirects.js
+++ b/doc/manual/redirects.js
@@ -10,7 +10,7 @@
// - keys are anchors on to the matched path.
// - values are redirection targets relative to the current path.
-var redirects = {
+const redirects = {
"index.html": {
"part-advanced-topics": "advanced-topics/advanced-topics.html",
"chap-tuning-cores-and-jobs": "advanced-topics/cores-vs-jobs.html",
@@ -377,9 +377,9 @@ var redirects = {
// /foo/bar/baz.html
//
-var segments = document.location.pathname.split('/');
+let segments = document.location.pathname.split('/');
-var file = segments.pop();
+let file = segments.pop();
// normalize file name
if (file === '') { file = "index.html"; }