mirror of
https://github.com/mempool/mempool.git
synced 2025-01-17 18:52:34 +01:00
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 !== '') {
|
||||
this.hostname = this.hostname + ':' + document.location.port;
|
||||
this.hostname = `${this.hostname}:${document.location.port}`;
|
||||
}
|
||||
|
||||
if (document.location.protocol === 'https') {
|
||||
this.hostname = `https://${this.hostname}`;
|
||||
} else {
|
||||
this.hostname = `http://${this.hostname}`;
|
||||
}
|
||||
this.hostname = `${document.location.protocol}//${this.hostname}`;
|
||||
|
||||
if (document.location.hostname === 'localhost') {
|
||||
if (this.env.BASE_MODULE === 'bisq') {
|
||||
|
Loading…
Reference in New Issue
Block a user