We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4d984b commit 015c9bbCopy full SHA for 015c9bb
lib/services/livesync/playground/qr-code-generator.ts
@@ -28,11 +28,11 @@ export class PlaygroundQrCodeGenerator implements IPlaygroundQrCodeGenerator {
28
}
29
30
private async generateQrCodeCore(url: string): Promise<void> {
31
- const shortenUrlEndpoint = util.format(this.$config.SHORTEN_URL_ENDPOINT, url);
+ const shortenUrlEndpoint = util.format(this.$config.SHORTEN_URL_ENDPOINT, encodeURIComponent(url));
32
try {
33
const response = await this.$httpClient.httpRequest(shortenUrlEndpoint);
34
const responseBody = JSON.parse(response.body);
35
- url = responseBody.shortURL || url;
+ url = responseBody.shortUrl || url;
36
} catch (e) {
37
// use the longUrl
38
0 commit comments