summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-07 16:32:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-07 16:32:41 +0900
commit727fdf31f92dd0fc5eb832b2e4000bb6cc7dfd45 (patch)
treee5e7cf6bc817108c5060e47699bc084479b17233 /src
parentImprove readability (diff)
downloadsharkey-727fdf31f92dd0fc5eb832b2e4000bb6cc7dfd45.tar.gz
sharkey-727fdf31f92dd0fc5eb832b2e4000bb6cc7dfd45.tar.bz2
sharkey-727fdf31f92dd0fc5eb832b2e4000bb6cc7dfd45.zip
[Client] Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/web/app/common/tags/twitter-setting.tag5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/app/common/tags/twitter-setting.tag b/src/web/app/common/tags/twitter-setting.tag
index ae4c054505..3626e113df 100644
--- a/src/web/app/common/tags/twitter-setting.tag
+++ b/src/web/app/common/tags/twitter-setting.tag
@@ -25,6 +25,8 @@
color #8899a6
</style>
<script>
+ import CONFIG from '../scripts/config';
+
this.mixin('i');
this.form = null;
@@ -43,7 +45,8 @@
}
};
- this.authorize = () => {
+ this.authorize = e => {
+ e.preventDefault();
this.form = window.open(CONFIG.apiUrl + '/connect/twitter',
'twitter_authorize_window',
'height=570,width=520');