Merge pull request #131 from Chroma-Case/tmp_branch_fix_front

invert shaddy condition
This commit is contained in:
Clément Le Bihan
2023-01-29 01:50:42 +09:00
committed by GitHub
+1 -1
View File
@@ -22,7 +22,7 @@ type PlayViewProps = {
let scoroBaseApiUrl = Constants.manifest?.extra?.scoroUrl;
if (process.env.NODE_ENV != 'development' && Platform.OS === 'web') {
if (location.protocol !== 'https:') {
if (location.protocol === 'https:') {
scoroBaseApiUrl = "wss://" + location.host + "/ws";
} else {
scoroBaseApiUrl = "ws://" + location.host + "/ws";