diff options
Diffstat (limited to 'site/content/docs/5.3/getting-started')
-rw-r--r-- | site/content/docs/5.3/getting-started/javascript.md | 4 | ||||
-rw-r--r-- | site/content/docs/5.3/getting-started/webpack.md | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/site/content/docs/5.3/getting-started/javascript.md b/site/content/docs/5.3/getting-started/javascript.md index 8efb2fb..80c222f 100644 --- a/site/content/docs/5.3/getting-started/javascript.md +++ b/site/content/docs/5.3/getting-started/javascript.md @@ -118,9 +118,7 @@ All infinitive events provide [`preventDefault()`](https://developer.mozilla.org const myModal = document.querySelector('#myModal') myModal.addEventListener('show.bs.modal', event => { - if (!data) { - return event.preventDefault() // stops modal from being shown - } + return event.preventDefault() // stops modal from being shown }) ``` diff --git a/site/content/docs/5.3/getting-started/webpack.md b/site/content/docs/5.3/getting-started/webpack.md index bd539b8..0709b7a 100644 --- a/site/content/docs/5.3/getting-started/webpack.md +++ b/site/content/docs/5.3/getting-started/webpack.md @@ -191,7 +191,7 @@ Importing Bootstrap into Webpack requires the loaders we installed in the first loader: 'postcss-loader', options: { postcssOptions: { - plugins: () => [ + plugins: [ autoprefixer ] } |