chore: repair eslint:recommended errors

pull/5690/head
Pavel Zavora 2021-03-08 08:22:57 +01:00
parent d293a540b5
commit 90f204cb6d
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ const download = (data, strFileName, strMimeType) => {
if (!winMode) { if (!winMode) {
// force a mime that will download: // force a mime that will download:
url = `data:${url.replace(/^data:([\w\/\-\+]+)/, defaultMime)}` url = `data:${url.replace(/^data:([\w/\-+]+)/, defaultMime)}`
} }
f.src = url f.src = url
setTimeout(function() { setTimeout(function() {
@ -93,7 +93,7 @@ const download = (data, strFileName, strMimeType) => {
} // end saver } // end saver
// go ahead and download dataURLs right away // go ahead and download dataURLs right away
if (/^data\:[\w+\-]+\/[\w+\-]+[,;]/.test(payload)) { if (/^data:[\w+-]+\/[\w+-]+[,;]/.test(payload)) {
if (payload.length > 1024 * 1024 * 1.999 && myBlob !== toString) { if (payload.length > 1024 * 1024 * 1.999 && myBlob !== toString) {
payload = dataUrlToBlob(myBlob, payload) payload = dataUrlToBlob(myBlob, payload)
mimeType = payload.type || defaultMime mimeType = payload.type || defaultMime

View File

@ -17,7 +17,7 @@ import {TimeZones} from 'src/types'
const dateFormat = 'YYYY-MM-DD HH:mm' const dateFormat = 'YYYY-MM-DD HH:mm'
const emptyTime = {lower: '', upper: ''} const emptyTime = {lower: '', upper: ''}
const format = (t, timeZone) => { const format = (t, timeZone) => {
const m = moment(t.replace(/\'/g, '')) const m = moment(t.replace(/'/g, ''))
if (timeZone === TimeZones.UTC) { if (timeZone === TimeZones.UTC) {
m.utc() m.utc()
} }