mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
fix discus hash url
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user