Skip to content

Commit

Permalink
fix (ui): fixed protocol selection for api requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Lukas committed Feb 4, 2023
1 parent 2f61f9b commit 8fd9d9c
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 @@ -389,7 +389,7 @@ export class MopidyPoolService {
const hydraplayHost = url.hostname;
const hdraplayProtocol = url.protocol;

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

settings['mopidy_instances'].forEach(instance => {
let mopidyPlayer = new MopidyPlayer( instance, settings['hydraplay'], this.notificationService );
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 @@ -68,7 +68,7 @@ export class SnapcastService {
const hydraplayHost = url.hostname;
const hdraplayProtocol = url.protocol;

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

public async connect(cfg: { reconnect: boolean } = { reconnect: false }) {
Expand Down

0 comments on commit 8fd9d9c

Please sign in to comment.