diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-22 02:00:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-22 02:00:30 +0900 |
| commit | abf1c30ce6198545c45e88c10f0922912ca5ac84 (patch) | |
| tree | 30d6eb2134debfbad07295e1b73ee6fe8c761351 /src/web/app/desktop/script.ts | |
| parent | wip (diff) | |
| download | misskey-abf1c30ce6198545c45e88c10f0922912ca5ac84.tar.gz misskey-abf1c30ce6198545c45e88c10f0922912ca5ac84.tar.bz2 misskey-abf1c30ce6198545c45e88c10f0922912ca5ac84.zip | |
wip
Diffstat (limited to 'src/web/app/desktop/script.ts')
| -rw-r--r-- | src/web/app/desktop/script.ts | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/web/app/desktop/script.ts b/src/web/app/desktop/script.ts index 4f2ac61ee2..3c560033f2 100644 --- a/src/web/app/desktop/script.ts +++ b/src/web/app/desktop/script.ts @@ -35,6 +35,7 @@ init(async (launch) => { // Register components require('./views/components'); + // Launch the app const [app, os] = launch(os => ({ chooseDriveFolder, chooseDriveFile, @@ -65,19 +66,15 @@ init(async (launch) => { } } - app.$router.addRoutes([{ - path: '/', name: 'index', component: MkIndex - }, { - path: '/i/customize-home', component: MkHomeCustomize - }, { - path: '/i/drive', component: MkDrive - }, { - path: '/i/drive/folder/:folder', component: MkDrive - }, { - path: '/selectdrive', component: MkSelectDrive - }, { - path: '/:user', component: MkUser - }]); + // Routing + app.$router.addRoutes([ + { path: '/', name: 'index', component: MkIndex }, + { path: '/i/customize-home', component: MkHomeCustomize }, + { path: '/i/drive', component: MkDrive }, + { path: '/i/drive/folder/:folder', component: MkDrive }, + { path: '/selectdrive', component: MkSelectDrive }, + { path: '/:user', component: MkUser } + ]); }, true); function registerNotifications(stream: HomeStreamManager) { |