We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239b7e0 commit 5bc8da9Copy full SHA for 5bc8da9
src/tools/image-to-css/image-to-css.service.ts
@@ -3,7 +3,7 @@ import { stringToUrl } from 'svg-to-url';
3
export type CSSType = 'Background' | 'Border' | 'ListItemBullet' | 'Url';
4
5
async function fileToDataUrl(file: File) {
6
- if (file.type === 'image/svg+xml'){
+ if (file.type === 'image/svg+xml') {
7
const svgContent = (await (new Promise<string>((resolve, reject) => {
8
const reader = new FileReader();
9
reader.readAsText(file);
0 commit comments