mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-21 20:59:01 +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(){
|
isSelfhosted(){
|
||||||
var http = new XMLHttpRequest();
|
var http = new XMLHttpRequest();
|
||||||
http.open('HEAD', `http://${this.getHost()}/selfhosted`, false);
|
http.open('HEAD', `${location.protocol}//${this.getHost()}/selfhosted`, false);
|
||||||
http.send();
|
http.send();
|
||||||
return http.status!=404;
|
return http.status!=404;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user