mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +03:00
fix: eslint
This commit is contained in:
1 parent
239b7e0600
commit
5bc8da91d6
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user