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