Commit b78729e 1 parent bc6a07f commit b78729e Copy full SHA for b78729e
File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ function check() {
27
27
fetch ( requestUrl )
28
28
. then ( response => response . json ( ) )
29
29
. then ( result => {
30
- if ( result . code == "200" ) {
30
+ if ( result . status == "200" ) {
31
31
document . getElementById ( "permission" ) . innerHTML = result . permission ;
32
32
loadingModal . hide ( ) ;
33
33
successModal . show ( ) ;
34
- } else if ( result . code == "404" ) {
34
+ } else if ( result . status == "404" ) {
35
35
loadingModal . hide ( ) ;
36
36
notfoundModal . show ( ) ;
37
37
} else {
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ function downloadRequest() {
28
28
fetch ( requestUrl )
29
29
. then ( response => response . json ( ) )
30
30
. then ( result => {
31
- if ( result . status == "200" ) {
31
+ if ( result . code == "200" ) {
32
32
loadingModal . hide ( ) ;
33
33
successModal . show ( ) ;
34
- } else if ( result . status == "403" ) {
34
+ } else if ( result . code == "403" ) {
35
35
loadingModal . hide ( ) ;
36
36
invalidModal . show ( ) ;
37
37
} else {
You can’t perform that action at this time.
0 commit comments