Skip to content

Commit

Permalink
Merge pull request #24 from rullzer/nonce_all_browsers
Browse files Browse the repository at this point in the history
Have the nonce properly set in all browsers
  • Loading branch information
MorrisJobke authored Oct 15, 2018
2 parents 54553d6 + f7040e3 commit b5246c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.strengthify.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b5246c9

Please sign in to comment.