mirror of
https://github.com/pheralb/svgl.git
synced 2025-03-13 08:30:34 +08:00
6 lines
171 B
TypeScript
6 lines
171 B
TypeScript
export const getSvgContent = async (url: string | undefined) => {
|
|
const response = await fetch(url || '');
|
|
const content = await response.text();
|
|
return content;
|
|
};
|