Skip to content

Commit

Permalink
recognize that zxcvbn was loaded before
Browse files Browse the repository at this point in the history
in bundled js environment the path `../zxcvbn/dist/zxcvbn.js` is not usable
  • Loading branch information
k2s authored Jul 11, 2016
1 parent 1b76390 commit 50d0741
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gold-password-input-strength-meter.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
},

ready: function() {
isZxcvbnLoaded = typeof zxcvbn !== "undefined";
if (!isZxcvbnLoaded) {
isZxcvbnLoaded = true;
var oScript = document.createElement("script");
Expand Down

0 comments on commit 50d0741

Please sign in to comment.