From 3bebf7fba1a44e5e5726db71fd404b7341750793 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Mon, 10 Dec 2018 01:44:43 +0900
Subject: [PATCH] Fix bug

---
 .../app/common/views/components/integration-settings.vue   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/client/app/common/views/components/integration-settings.vue b/src/client/app/common/views/components/integration-settings.vue
index 50796980f..4947d7305 100644
--- a/src/client/app/common/views/components/integration-settings.vue
+++ b/src/client/app/common/views/components/integration-settings.vue
@@ -43,10 +43,17 @@ export default Vue.extend({
 	},
 
 	mounted() {
+		document.cookie = `i=${this.$store.state.i.token}`;
 		this.$watch('$store.state.i', () => {
 			if (this.$store.state.i.twitter) {
 				if (this.twitterForm) this.twitterForm.close();
 			}
+			if (this.$store.state.i.discord) {
+				if (this.discordForm) this.discordForm.close();
+			}
+			if (this.$store.state.i.github) {
+				if (this.githubForm) this.githubForm.close();
+			}
 		}, {
 			deep: true
 		});