Update document, window

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-10-20 11:46:23 +03:00
parent 5c344ae3e3
commit 52880f08ee
14 changed files with 16 additions and 16 deletions

View File

@ -5,7 +5,7 @@ tags: browser,beginner
Gets the protocol being used on the current page.
- Use `window.location.protocol` to get the protocol (`http:` or `https:`) of the current page.
- Use `Window.location.protocol` to get the protocol (`http:` or `https:`) of the current page.
```js
const getProtocol = () => window.location.protocol;