Skip to content

Commit

Permalink
Fix show qrcode in output window function (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
EzioLi01 authored Jul 6, 2023
1 parent ada9663 commit b23d758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/exponent/exponentPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import * as url from "url";
import * as vscode from "vscode";
import * as nls from "vscode-nls";
import { generate } from "qrcode-terminal";
import * as qrcode from "qrcode-terminal";
import { ErrorHelper } from "../../common/error/errorHelper";
import { InternalErrorCode } from "../../common/error/internalErrorCode";
import { ExpoHostType, IExponentRunOptions, PlatformType } from "../launchArgs";
Expand Down Expand Up @@ -131,7 +131,7 @@ export class ExponentPlatform extends GeneralPlatform {
"Scan below QR code to open your app:",
);
this.logger.info(outputMessage);
generate(exponentUrl, { small: true }, (qrcode: string) =>
qrcode.generate(exponentUrl, { small: true }, (qrcode: string) =>
this.logger.info(`\n${qrcode}`),
);
}
Expand Down

0 comments on commit b23d758

Please sign in to comment.