1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

fix discus hash url

This commit is contained in:
ruanyf 2015-10-14 21:09:23 +08:00
parent 62f987c4cc
commit 77503618e3

View File

@ -194,7 +194,7 @@ function show_loading() {
function router() {
var path = location.hash.replace("#", "./");
var path = location.hash.replace(/#([^#]*)(#.*)?/, './$1');
if (ditto.save_progress && store.get('menu-progress') !== location.hash) {
store.set('menu-progress', location.hash);