mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-22 20:53:27 +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();
|
const http = new XMLHttpRequest();
|
||||||
http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false);
|
http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false);
|
||||||
http.send();
|
http.send();
|
||||||
return http.status != 404;
|
return http.status == 200;
|
||||||
}
|
}
|
||||||
|
|
||||||
safe_urls = [
|
safe_urls = [
|
||||||
|
Reference in New Issue
Block a user