screenshots; apiBase
This commit is contained in:
parent
2e6cde7a8e
commit
d7b644c491
@ -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