Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

Commit

Permalink
Merge branch 'upstream' of github.com:seethroughtrees/react-ux-passwo…
Browse files Browse the repository at this point in the history
…rd-field into upstream

* 'upstream' of github.com:seethroughtrees/react-ux-password-field:
  Load zxcvbn when component is mounted. Fixes #27.
  • Loading branch information
Adam L committed Feb 10, 2016
2 parents f3bfef2 + 45dd39b commit 4019363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ var InputPassword = React.createClass({

zxcvbnSrc = this.props.zxcvbn !== 'debug' ? this.props.zxcvbn : config.zxcvbnSrc;

// snippet to async load zxcvbn if enabled
(function(){var a;a=function(){var a,b;b=document.createElement("script");b.src=zxcvbnSrc;b.type="text/javascript";b.async=!0;a=document.getElementsByTagName("head")[0];return a.parentNode.insertBefore(b,a)};null!=window.attachEvent?window.attachEvent("onload",a):window.addEventListener("load",a,!1)}).call(this);
// snippet to async load zxcvbn if enabled
(function(){var a,b;b=document.createElement("script");b.src=zxcvbnSrc;b.type="text/javascript";b.async=!0;a=document.getElementsByTagName("head")[0];a.parentNode.insertBefore(b,a);}).call(this);
}

// set debouncer for password
Expand Down

0 comments on commit 4019363

Please sign in to comment.