Browse Source

fixed missing variable rename in index.html

Skylsmoi 6 years ago
parent
commit
18f83a10cc
1 changed files with 2 additions and 9 deletions
  1. 2 9
      dist/index.html

+ 2 - 9
dist/index.html View File

@@ -35,14 +35,7 @@
35 35
 
36 36
     <script type='text/javascript'>
37 37
       let prevSelectedApp = {name: ''} // default value
38
-      /*
39
-        app : {
40
-          loggedUser: {id, isLoggedIn, username, firstname, lastname, email, avatar}
41
-          workspace: {id, title},
42
-          appConfig: {name, componentLeft, componentRight, customClass, icon},
43
-          content: {id, title, type, status}
44
-        }
45
-      */
38
+
46 39
       GLOBAL_renderApp = app => {
47 40
         const selectedApp = (() => {
48 41
           switch (app.config.name) {
@@ -54,7 +47,7 @@
54 47
         })()
55 48
 
56 49
         if (selectedApp.isRendered) {
57
-          GLOBAL_dispatchEvent(`${app.appConfig.name}_showApp`, app)
50
+          GLOBAL_dispatchEvent(`${app.config.name}_showApp`, app)
58 51
         } else {
59 52
           selectedApp.renderApp(app)
60 53
           selectedApp.isRendered = true