mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-04 13:29:13 -04:00
fix: eslint
This commit is contained in:
parent
239b7e0600
commit
5bc8da91d6
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import { stringToUrl } from 'svg-to-url';
|
|||
export type CSSType = 'Background' | 'Border' | 'ListItemBullet' | 'Url';
|
||||
|
||||
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 reader = new FileReader();
|
||||
reader.readAsText(file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue