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:
parent
62f987c4cc
commit
77503618e3
@ -194,7 +194,7 @@ function show_loading() {
|
|||||||
|
|
||||||
function router() {
|
function router() {
|
||||||
|
|
||||||
var path = location.hash.replace("#", "./");
|
var path = location.hash.replace(/#([^#]*)(#.*)?/, './$1');
|
||||||
|
|
||||||
if (ditto.save_progress && store.get('menu-progress') !== location.hash) {
|
if (ditto.save_progress && store.get('menu-progress') !== location.hash) {
|
||||||
store.set('menu-progress', location.hash);
|
store.set('menu-progress', location.hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user