Skip to content

Commit

Permalink
fix Type string
Browse files Browse the repository at this point in the history
  • Loading branch information
yuta-hayashi committed Aug 9, 2022
1 parent ab799c9 commit 9617625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const formatBytes = (bytes, decimals = 3) => {
const addInfoElement = (width, height, type, fileSize) => {
const div = document.createElement('div')
const template = `
<span style='background-color: white; padding: 0.6rem;'>Width: ${width} px | Height: ${height} px | Type: ${type} | File size: ${formatBytes(
fileSize
)}</span>
<span style='background-color: white; padding: 0.6rem;'>Width: ${width} px | Height: ${height} px | Type: ${
type.split('/')[1]
} | File size: ${formatBytes(fileSize)}</span>
`
div.innerHTML = template
document.body.insertBefore(div, document.body.firstChild)
Expand Down

0 comments on commit 9617625

Please sign in to comment.