mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 05:51:44 +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';
|
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);
|
||||||
|
|||||||
Reference in new issue
Block a user