diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-15 17:30:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 17:30:16 +0300 |
commit | b5246c9b59717346e51a0224e2c3cb0cae9036cc (patch) | |
tree | c0eca08e6302ce0bd6d1fd7b1e31ee9a20869c05 | |
parent | 54553d678d7894beff368ce4b4393bcc1f387037 (diff) | |
parent | f7040e3de647060f81f07d6799823eb79338cbb8 (diff) |
Merge pull request #24 from rullzer/nonce_all_browsers
Have the nonce properly set in all browsers
-rw-r--r-- | jquery.strengthify.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |