Skip to content

Commit

Permalink
Load zxcvbn when component is mounted. Fixes seethroughdev#27.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Barth committed Jan 20, 2016
1 parent c21263d commit 001cfdd
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 @@ -195,8 +195,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 001cfdd

Please sign in to comment.