mirror of
https://github.com/stashapp/stash.git
synced 2026-04-28 20:49:19 -05:00
Use wss if origin uses https (#161)
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user