Skip to content

Commit bc6a07f

Browse files
committed
Fix status code comparison in check.js
1 parent bb04fbc commit bc6a07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/check.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ function check() {
2727
fetch(requestUrl)
2828
.then(response => response.json())
2929
.then(result => {
30-
if (result.status == "200") {
30+
if (result.code == "200") {
3131
document.getElementById("permission").innerHTML = result.permission;
3232
loadingModal.hide();
3333
successModal.show();
34-
} else if (result.status == "404") {
34+
} else if (result.code == "404") {
3535
loadingModal.hide();
3636
notfoundModal.show();
3737
} else {

0 commit comments

Comments
 (0)