From 5d9e4e94e156b02ebf8387c2816c8f57d492f4c4 Mon Sep 17 00:00:00 2001 From: jaeh Date: Sat, 13 Apr 2024 19:32:27 +0200 Subject: [PATCH] src/main.js: finally fix isLocal check for https redirect --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 2f00d08..e6d3dae 100644 --- a/src/main.js +++ b/src/main.js @@ -11,7 +11,7 @@ const { hostname, protocol } = window.location; -const isLocal = hostname !== 'localhost' && hostname !== '127.0.0.1'; +const isLocal = hostname === 'localhost' || hostname === '127.0.0.1'; const isHttp = protocol === 'http:'; if (!isLocal && isHttp) { window.location.protocol = 'https:';