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) {
60
60
if ( checkLoginStateChanged ( ) ) checkAuth = false
61
61
if ( ! checkAuth || typeof cookieLoginState === 'undefined' ) {
62
62
$ . 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
+ } )
79
79
} else if ( cookieLoginState ) {
80
80
yesCallback ( profile )
81
81
} else {
You can’t perform that action at this time.
0 commit comments