summaryrefslogtreecommitdiff
path: root/www/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/utils.js')
-rw-r--r--www/js/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index 2c69b73..2b5d576 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -96,7 +96,7 @@ function get_rd_week(msEpoch) {
return week;
}
-function locationHashValue() {
- var hash = window.location.hash.match(/#([a-z]+)\/?.*/);
- return hash ? hash[1] : '';
+function locationHrefValue() {
+ var value = window.location.href.match(/import.helsinki.at\/([a-z]+)\/?.*/);
+ return value ? value[1] : '';
}