mirror of
https://github.com/stashapp/stash.git
synced 2026-01-03 14:12:52 +01:00
Use wss if origin uses https (#161)
This commit is contained in:
parent
707bd09349
commit
70ce01c604
1 changed files with 4 additions and 1 deletions
|
|
@ -23,9 +23,12 @@ export class StashService {
|
|||
|
||||
if (process.env.REACT_APP_HTTPS === "true") {
|
||||
platformUrl.protocol = "https:";
|
||||
wsPlatformUrl.protocol = "wss:";
|
||||
}
|
||||
}
|
||||
|
||||
if (platformUrl.protocol === "https:") {
|
||||
wsPlatformUrl.protocol = "wss:";
|
||||
}
|
||||
const url = platformUrl.toString().slice(0, -1) + "/graphql";
|
||||
const wsUrl = wsPlatformUrl.toString().slice(0, -1) + "/graphql";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue