Skip to content

Commit a56a14a

Browse files
committed
fix: remove unused code
1 parent 6f9c7b6 commit a56a14a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default (url) => {
1616
useEffect(() => {
1717
if (!url) return;
1818
const img = document.createElement('img');
19-
img.style.display = 'none';
2019
img.addEventListener('load', (e) => {
2120
const { naturalHeight, naturalWidth } = e.target;
2221
setSize([naturalWidth, naturalHeight]);

0 commit comments

Comments
 (0)