Fix document location protocol for curl url.
This commit is contained in:
parent
ba0fb996d2
commit
c256daf8c8
@ -37,14 +37,10 @@ export class ApiDocsComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (document.location.port !== '') {
|
if (document.location.port !== '') {
|
||||||
this.hostname = this.hostname + ':' + document.location.port;
|
this.hostname = `${this.hostname}:${document.location.port}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (document.location.protocol === 'https') {
|
this.hostname = `${document.location.protocol}//${this.hostname}`;
|
||||||
this.hostname = `https://${this.hostname}`;
|
|
||||||
} else {
|
|
||||||
this.hostname = `http://${this.hostname}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (document.location.hostname === 'localhost') {
|
if (document.location.hostname === 'localhost') {
|
||||||
if (this.env.BASE_MODULE === 'bisq') {
|
if (this.env.BASE_MODULE === 'bisq') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user