mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 20:40:06 +00:00
Use lodash.isFinite instead of isNaN for IE support
This commit is contained in:
parent
70471d47a8
commit
2718837201
2 changed files with 3 additions and 1 deletions
|
|
@ -104,6 +104,7 @@
|
|||
"drag-drop": "2.13.2",
|
||||
"es6-promise": "3.2.1",
|
||||
"get-form-data": "^1.2.5",
|
||||
"lodash.isfinite": "^3.3.2",
|
||||
"lodash.throttle": "4.1.1",
|
||||
"mime-match": "^1.0.2",
|
||||
"namespace-emitter": "^2.0.0",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const html = require('yo-yo')
|
||||
const isFinite = require('lodash.isfinite')
|
||||
const { getETA,
|
||||
getSpeed,
|
||||
prettyETA,
|
||||
|
|
@ -99,7 +100,7 @@ module.exports = function fileItem (props) {
|
|||
}
|
||||
</h4>
|
||||
<div class="UppyDashboardItem-status">
|
||||
${isNaN(file.data.size) ? '' : html`<div class="UppyDashboardItem-statusSize">${prettyBytes(file.data.size)}</div>`}
|
||||
${isFinite(file.data.size) ? html`<div class="UppyDashboardItem-statusSize">${prettyBytes(file.data.size)}</div>` : ''}
|
||||
${file.source && html`<div class="UppyDashboardItem-sourceIcon">
|
||||
${acquirers.map(acquirer => {
|
||||
if (acquirer.id === file.source) return html`<span title="${props.i18n('fileSource')}: ${acquirer.name}">${acquirer.icon()}</span>`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue