Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
Now it consistent
  • Loading branch information
drakmail committed Feb 16, 2016
1 parent d7d80da commit 9472813
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _posts/en/2016-02-15-detect-document-ready-in-pure-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ You can detect when the document it's ready...
```js
let stateCheck = setInterval(() => {
if (document.readyState === 'complete') {
clearInterval(stateCheck);
// document ready
}
clearInterval(stateCheck);
// document ready
}
}, 100);
```

Expand All @@ -36,9 +36,9 @@ or with [onreadystatechange](https://developer.mozilla.org/en-US/docs/Web/Events

```js
document.onreadystatechange = () => {
if (document.readyState === 'complete') {
// document ready
}
if (document.readyState === 'complete') {
// document ready
}
};
```

Expand Down

0 comments on commit 9472813

Please sign in to comment.