mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-20 12:19:00 +00:00
Fix selfhosted secure/unsecure context bug (#234)
This commit is contained in:
parent
645671265a
commit
a0b1d277c6
@ -20,7 +20,7 @@ class UnsafeAlert extends Component {
|
||||
|
||||
isSelfhosted(){
|
||||
var http = new XMLHttpRequest();
|
||||
http.open('HEAD', `http://${this.getHost()}/selfhosted`, false);
|
||||
http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false);
|
||||
http.send();
|
||||
return http.status!=404;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user