Fix tighten condition for selfhosted check

This commit is contained in:
Reckless_Satoshi 2022-09-14 04:57:58 -07:00
parent efc3da28bd
commit cd8b607891
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -24,7 +24,7 @@ class UnsafeAlert extends Component {
const http = new XMLHttpRequest();
http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false);
http.send();
return http.status != 404;
return http.status == 200;
}
safe_urls = [