diff options
Diffstat (limited to 'src/lib.ts')
| -rw-r--r-- | src/lib.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -42,6 +42,10 @@ export async function getServerResponse(params: string){ } return responseObj; } +const SERVER_IMG_PATH = '/img/' +export function getImagePath(imgName: string): string { + return SERVER_IMG_PATH + imgName.replaceAll('\'', '\\\''); +} // For server search responses export type SearchSugg = { // Represents a search-string suggestion name: string, |
