mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 10:22:23 +00:00
fix discus hash url
This commit is contained in:
parent
62f987c4cc
commit
77503618e3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user