From abaf47b3806878cf310369ec9c69df2e6ee9fa31 Mon Sep 17 00:00:00 2001 From: zhw2590582 Date: Sat, 27 Apr 2019 21:33:56 +0800 Subject: [PATCH] Update github.js --- docs/assets/example/github.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/assets/example/github.js b/docs/assets/example/github.js index 6155734b6..5990f0a94 100644 --- a/docs/assets/example/github.js +++ b/docs/assets/example/github.js @@ -17,7 +17,10 @@ var art = new Artplayer({ position: 'right', html: '发送弹幕', click: () => { - if (!github.isLogin) { + if (window.location.href.includes('code=')) { + art.notice.show('正在登陆中,请稍等!!!'); + return; + } else if (!github.isLogin) { github.login(); } else { var text = prompt('请输入:', '弹幕内容');