mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-22 21:33:21 +00:00
Fix tighten condition for selfhosted check
This commit is contained in:
@ -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 = [
|
||||
|
Reference in New Issue
Block a user