Format snippets
This commit is contained in:
@ -12,7 +12,8 @@ Redirects the page to HTTPS if it's currently in HTTP.
|
||||
|
||||
```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]);
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user