From f7040e3de647060f81f07d6799823eb79338cbb8 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 15 Oct 2018 16:21:50 +0200 Subject: Have the nonce properly set in all browsers some browsers choke on script.nonce = Signed-off-by: Roeland Jago Douma --- jquery.strengthify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.strengthify.js b/jquery.strengthify.js index 06bc38e..16f7468 100644 --- a/jquery.strengthify.js +++ b/jquery.strengthify.js @@ -211,7 +211,7 @@ var script = document.createElement("script"); script.src = options.zxcvbn; if (options.nonce !== null) { - script.nonce = options.nonce; + script.setAttribute('nonce', options.nonce); } document.head.appendChild(script); -- cgit v1.2.3