Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/strengthify.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-10-15 17:30:16 +0300
committerGitHub <noreply@github.com>2018-10-15 17:30:16 +0300
commitb5246c9b59717346e51a0224e2c3cb0cae9036cc (patch)
treec0eca08e6302ce0bd6d1fd7b1e31ee9a20869c05
parent54553d678d7894beff368ce4b4393bcc1f387037 (diff)
parentf7040e3de647060f81f07d6799823eb79338cbb8 (diff)
Merge pull request #24 from rullzer/nonce_all_browsers
Have the nonce properly set in all browsers
-rw-r--r--jquery.strengthify.js2
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);