Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
int64ago committed Feb 7, 2019
1 parent 6f9c7b6 commit a56a14a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.js
Expand Up @@ -16,7 +16,6 @@ export default (url) => {
useEffect(() => {
if (!url) return;
const img = document.createElement('img');
img.style.display = 'none';
img.addEventListener('load', (e) => {
const { naturalHeight, naturalWidth } = e.target;
setSize([naturalWidth, naturalHeight]);
Expand Down

0 comments on commit a56a14a

Please sign in to comment.