screenshots; apiBase
This commit is contained in:
parent
c3a0c32d99
commit
4d125d4a27
@ -37,7 +37,7 @@ export async function encodeUrl(specs: Specs): Promise<string> {
|
||||
}
|
||||
|
||||
export function getScreenshotUrl(url: string): string {
|
||||
return `${apiBase}${screenshotEndpoint}?url=${url}`;
|
||||
return `${apiBase}${screenshotEndpoint}?url=${encodeURIComponent(url)}`;
|
||||
}
|
||||
|
||||
function b64encode(buf: Uint8Array): string {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user