File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -60,22 +60,22 @@ export function checkIfAuth (yesCallback, noCallback) {
6060 if ( checkLoginStateChanged ( ) ) checkAuth = false
6161 if ( ! checkAuth || typeof cookieLoginState === 'undefined' ) {
6262 $ . get ( `${ serverurl } /me` )
63- . done ( data => {
64- if ( data && data . status === 'ok' ) {
65- profile = data
66- yesCallback ( profile )
67- setLoginState ( true , data . id )
68- } else {
69- noCallback ( )
70- setLoginState ( false )
71- }
72- } )
73- . fail ( ( ) => {
74- noCallback ( )
75- } )
76- . always ( ( ) => {
77- checkAuth = true
78- } )
63+ . done ( data => {
64+ if ( data && data . status === 'ok' ) {
65+ profile = data
66+ yesCallback ( profile )
67+ setLoginState ( true , data . id )
68+ } else {
69+ noCallback ( )
70+ setLoginState ( false )
71+ }
72+ } )
73+ . fail ( ( ) => {
74+ noCallback ( )
75+ } )
76+ . always ( ( ) => {
77+ checkAuth = true
78+ } )
7979 } else if ( cookieLoginState ) {
8080 yesCallback ( profile )
8181 } else {
You can’t perform that action at this time.
0 commit comments