From 43906a05ad2a01702fb5edc54b2d3e7657ee1abb Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Thu, 21 Dec 2017 14:26:15 +0200 Subject: [PATCH] Update httpsRedirect.md --- snippets/httpsRedirect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/httpsRedirect.md b/snippets/httpsRedirect.md index 26f8ec2c9..b1b851320 100644 --- a/snippets/httpsRedirect.md +++ b/snippets/httpsRedirect.md @@ -6,6 +6,6 @@ Use `location.protocol` to get the protocol currently being used. If it's not HT ```js const httpsRedirect = () => { - if(location.protocol !== "https:") location.replace("https://" + location.href.split("//")[1]); + if(location.protocol !== "https:") location.replace("https://" + location.href.split("//")[1]); } ```