Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit 09a1cf5

Browse files
committed
Prefer Date.now()
1 parent d11db67 commit 09a1cf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ const imageCacheHoc = <P extends object>(
296296
}
297297

298298
onSourceLoaded({ path }: CacheFileInfo) {
299-
this.setState({ loadedAt: new Date().getTime(), localFilePath: path })
299+
this.setState({ loadedAt: Date.now(), localFilePath: path })
300300
this.invalidUrl = path === null
301301

302302
if (path && this.props.onLoadFinished) {

0 commit comments

Comments
 (0)