From 8ce2eb5ae5065836d9c3fd139b7a00c5a4268ad9 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Mon, 16 Apr 2018 06:31:56 +0900
Subject: [PATCH] Fix #1483

---
 src/client/app/auth/script.ts | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/client/app/auth/script.ts b/src/client/app/auth/script.ts
index 31c758ebc..20f59bf03 100644
--- a/src/client/app/auth/script.ts
+++ b/src/client/app/auth/script.ts
@@ -2,6 +2,8 @@
  * Authorize Form
  */
 
+import VueRouter from 'vue-router';
+
 // Style
 import './style.styl';
 
@@ -12,14 +14,17 @@ import Index from './views/index.vue';
 /**
  * init
  */
-init(async (launch) => {
+init(launch => {
 	document.title = 'Misskey | アプリの連携';
 
-	// Launch the app
-	const [app] = launch();
+	// Init router
+	const router = new VueRouter({
+		mode: 'history',
+		routes: [
+			{ path: '/:token', component: Index },
+		]
+	});
 
-	// Routing
-	app.$router.addRoutes([
-		{ path: '/:token', component: Index },
-	]);
+	// Launch the app
+	launch(router);
 });