Retitle snippets
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: httpsRedirect
|
||||
title: Redirect to HTTPS
|
||||
tags: browser,intermediate
|
||||
firstSeen: 2017-12-21T08:33:56+02:00
|
||||
lastUpdated: 2020-10-22T20:23:47+03:00
|
||||
@ -20,6 +20,6 @@ const httpsRedirect = () => {
|
||||
```
|
||||
|
||||
```js
|
||||
httpsRedirect();
|
||||
httpsRedirect();
|
||||
// If you are on http://mydomain.com, you are redirected to https://mydomain.com
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user