fix: eslint

This commit is contained in:
ShareVB 2024-06-16 22:22:37 +02:00
parent 239b7e0600
commit 5bc8da91d6

View file

@ -3,7 +3,7 @@ import { stringToUrl } from 'svg-to-url';
export type CSSType = 'Background' | 'Border' | 'ListItemBullet' | 'Url'; export type CSSType = 'Background' | 'Border' | 'ListItemBullet' | 'Url';
async function fileToDataUrl(file: File) { async function fileToDataUrl(file: File) {
if (file.type === 'image/svg+xml'){ if (file.type === 'image/svg+xml') {
const svgContent = (await (new Promise<string>((resolve, reject) => { const svgContent = (await (new Promise<string>((resolve, reject) => {
const reader = new FileReader(); const reader = new FileReader();
reader.readAsText(file); reader.readAsText(file);