summaryrefslogtreecommitdiff
path: root/www/js/utils.js
diff options
context:
space:
mode:
authorPeterTheOne <petertheone@gmail.com>2015-07-31 19:29:15 (GMT)
committerPeterTheOne <petertheone@gmail.com>2015-07-31 19:29:15 (GMT)
commit9bcb5485f8a47358463e2d3fc4bf45c567163d7a (patch)
treee37eafa44fe8172455ce3bb777424287511fb275 /www/js/utils.js
parent2aedff65649b4601d5998696fac2ccf33ff1ba9b (diff)
use history.pushState to switch apps
Diffstat (limited to 'www/js/utils.js')
-rw-r--r--www/js/utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index eeebadd..af0b479 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -190,3 +190,8 @@ function clock_init() {
function clock_add_callback(cb) {
clock.addCallback(cb);
}
+
+function locationHashValue() {
+ var hash = window.location.hash.match(/#([a-z]+)\/?.*/);
+ return hash ? hash[1] : '';
+}