From 50d0741e77045ef9006276898cb036dad31190db Mon Sep 17 00:00:00 2001 From: k2s Date: Mon, 11 Jul 2016 13:31:39 +0200 Subject: [PATCH] recognize that zxcvbn was loaded before in bundled js environment the path `../zxcvbn/dist/zxcvbn.js` is not usable --- gold-password-input-strength-meter.html | 1 + 1 file changed, 1 insertion(+) diff --git a/gold-password-input-strength-meter.html b/gold-password-input-strength-meter.html index a444817..16fe8fc 100644 --- a/gold-password-input-strength-meter.html +++ b/gold-password-input-strength-meter.html @@ -158,6 +158,7 @@ }, ready: function() { + isZxcvbnLoaded = typeof zxcvbn !== "undefined"; if (!isZxcvbnLoaded) { isZxcvbnLoaded = true; var oScript = document.createElement("script");