Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Prettier autolinting
Browse files Browse the repository at this point in the history
- I should probably build a commit hook for this, whoops
+ Rerun yarn build
  • Loading branch information
cee-chen committed Jun 27, 2019
1 parent 1dc7ce4 commit ea3aed5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/objectFitPolyfill.basic.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/objectFitPolyfill.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/objectFitPolyfill.basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,11 @@
return true;
};

if (document.readyState === 'loading') { // Loading hasn't finished yet
if (document.readyState === 'loading') {
// Loading hasn't finished yet
document.addEventListener('DOMContentLoaded', objectFitPolyfill);
} else { // `DOMContentLoaded` has already fired
} else {
// `DOMContentLoaded` has already fired
objectFitPolyfill();
}

Expand Down
6 changes: 4 additions & 2 deletions src/objectFitPolyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,11 @@
return true;
};

if (document.readyState === 'loading') { // Loading hasn't finished yet
if (document.readyState === 'loading') {
// Loading hasn't finished yet
document.addEventListener('DOMContentLoaded', objectFitPolyfill);
} else { // `DOMContentLoaded` has already fired
} else {
// `DOMContentLoaded` has already fired
objectFitPolyfill();
}

Expand Down

0 comments on commit ea3aed5

Please sign in to comment.