mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
🚀 Add new /templates utility + add support for web components
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
interface SourceParams {
|
||||
url: string | undefined;
|
||||
}
|
||||
|
||||
export const getSource = async (params: SourceParams) => {
|
||||
const response = await fetch(params.url || '');
|
||||
const content = await response.text();
|
||||
return content;
|
||||
};
|
||||
Reference in New Issue
Block a user