diff --git a/ext/data/password-fill-cs.js b/ext/data/password-fill-cs.js index 06098ae..430aa31 100644 --- a/ext/data/password-fill-cs.js +++ b/ext/data/password-fill-cs.js @@ -8,10 +8,13 @@ self.port.once("the_password", function (d) { document.activeElement.type === "password") { document.activeElement.value = d; + var el; - if ('angular' in unsafeWindow) { - var el = unsafeWindow.angular.element(document.activeElement); + if ('angular' in unsafeWindow) + el = unsafeWindow.angular.element(document.activeElement); + else if ('$' in unsafeWindow) + el = unsafeWindow.$(document.activeElement); + if (el) el.change(); - } } });