diff --git a/index.js b/index.js index bb2fd12..4b018c0 100644 --- a/index.js +++ b/index.js @@ -80,6 +80,11 @@ class CSVBoxImporter { let css = document.createElement("style"); css.type = "text/css"; + + if (!!this.configuration.nonce) { + css.nonce = this.configuration.nonce; + } + if ("textContent" in css) css.textContent = cssText; else @@ -390,4 +395,4 @@ if(csvboxElements.length > 0){ }); } -export default CSVBoxImporter; \ No newline at end of file +export default CSVBoxImporter;