浏览代码

fix nprogress

Nikolay Suslov 4 年之前
父节点
当前提交
483ad55a34
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      public/index.js

+ 2 - 3
public/index.js

@@ -58,6 +58,7 @@ loadjs(['/lib/gundb/gun.min.js',
 
 
 loadjs.ready(['sys', 'fun', 'forall'], function() {
+        NProgress.start();
     }).ready('gundb', function() {
         import('/core/app.js')
             .then((module) => {
@@ -65,6 +66,4 @@ loadjs.ready(['sys', 'fun', 'forall'], function() {
         });
 })
 
-document.addEventListener('DOMContentLoaded', function(){
-    NProgress.start();
-})
+