Skip to content

Commit

Permalink
fix (ui): fixed protocol for api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Lukas committed Feb 4, 2023
1 parent 6eac869 commit 2f61f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/src/app/services/mopidy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ export class MopidyPoolService {
const url = new URL(window.location.href);
const hydraplayPort = url.port;
const hydraplayHost = url.hostname;
const hdraplayProtocol = "http";
const hdraplayProtocol = url.protocol;

this.http.get<any>(hdraplayProtocol + "://" + hydraplayHost + ":" + hydraplayPort + "/api/settings").subscribe(settings => {

Expand Down
2 changes: 1 addition & 1 deletion src/ui/src/app/services/snapcast.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class SnapcastService {
const url = new URL(window.location.href);
const hydraplayPort = url.port;
const hydraplayHost = url.hostname;
const hdraplayProtocol = "http";
const hdraplayProtocol = url.protocol;

return this.http.get<any>(hdraplayProtocol + "://" + hydraplayHost + ":" + hydraplayPort + "/api/settings").pipe(map(response=>response));
}
Expand Down

0 comments on commit 2f61f9b

Please sign in to comment.