Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobad committed Nov 2, 2019
1 parent 4236296 commit 6acbee5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/detect-autofill.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ if (typeof window.CustomEvent !== 'function') {
* @param {AnimationEvent} event
*/
function onAnimationStart(event) {
('onautofillstart' === event.animationName)
? autocomplete(event.target)
: cancelAutocomplete(event.target);
('onautofillstart' === event.animationName) ?
autocomplete(event.target) :
cancelAutocomplete(event.target);
}

/**
Expand All @@ -43,9 +43,9 @@ function onAnimationStart(event) {
* @param {InputEvent} event
*/
function onInput(event) {
('insertReplacementText' === event.inputType || !('data' in event))
? autocomplete(event.target)
: cancelAutocomplete(event.target);
('insertReplacementText' === event.inputType || !('data' in event)) ?
autocomplete(event.target) :
cancelAutocomplete(event.target);
}

/**
Expand Down

0 comments on commit 6acbee5

Please sign in to comment.