diff --git a/README.md b/README.md index e22e72f9..61a9e12e 100755 --- a/README.md +++ b/README.md @@ -313,6 +313,7 @@ Option C: Import `tns` directly start from v2.8.2 | `startIndex` | positive integer | Default: 0.
The initial `index` of the slider. | | `onInit` | Function \| false | Default: false.
Callback to be run on initialization. | | `useLocalStorage` | Boolean | Default: true.
Save browser capability variables to [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) and without detecting them everytime the slider runs if set to `true`. | +| `nonce`| String / false | Default: false.
Optional Nonce attribute for inline style tag to allow slider usage without `unsafe-inline Content Security Policy source. | NOTE: Prior to v2.0.2, options "container", "controlsContainer", "navContainer" and "autoplayButton" still need to be DOM elements. diff --git a/src/helpers/createStyleSheet.js b/src/helpers/createStyleSheet.js index d521bf2d..2625fbcb 100644 --- a/src/helpers/createStyleSheet.js +++ b/src/helpers/createStyleSheet.js @@ -1,5 +1,5 @@ // create and append style sheet -export function createStyleSheet (media) { +export function createStyleSheet (media, nonce) { // Create the