aboutsummaryrefslogtreecommitdiffstats
path: root/webroot/.static
diff options
context:
space:
mode:
Diffstat (limited to 'webroot/.static')
-rw-r--r--webroot/.static/js/lxrng-funcs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webroot/.static/js/lxrng-funcs.js b/webroot/.static/js/lxrng-funcs.js
index 939eefd..c508dc9 100644
--- a/webroot/.static/js/lxrng-funcs.js
+++ b/webroot/.static/js/lxrng-funcs.js
@@ -314,7 +314,10 @@ function load_content() {
}
var tree = location.hash.split('/', 1);
tree = tree[0].split(/[+]/);
- var ver = tree[1] || '';
+ var ver = '';
+ if (tree.length > 1) {
+ ver = tree[1];
+ }
tree = tree[0].replace(/^#/, '');
var file = location.hash.replace(/^[^\/]*\/?/, '');
var line = file.replace(/.*\#L(\d+)/, '$1');