mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
edit js/ditto
This commit is contained in:
+1
-1
@@ -251,7 +251,7 @@ function router() {
|
||||
var perc = ditto.save_progress ? store.get('page-progress') || 0 : 0;
|
||||
|
||||
if(location.hash !== '' || Boolean(perc)){
|
||||
if (!Boolean(perc){
|
||||
if (!Boolean(perc)){
|
||||
$('html, body').animate({
|
||||
scrollTop: $('#content').offset().top
|
||||
}, 200);
|
||||
|
||||
Reference in New Issue
Block a user