From d92d05809f0ba096c00a81eb09dcc4651d24cc81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 29 Jan 2023 01:49:40 +0900 Subject: [PATCH] invert shaddy condition --- front/views/PlayView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/views/PlayView.tsx b/front/views/PlayView.tsx index fdea7e0..c68ae4f 100644 --- a/front/views/PlayView.tsx +++ b/front/views/PlayView.tsx @@ -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";