From dd0017a1587f0b3ac53fbcbb27ce4156681b513c Mon Sep 17 00:00:00 2001 From: Meisam Seyed Aliroteh Date: Thu, 26 Oct 2023 11:23:06 -0700 Subject: [PATCH] fix misspelling --- src/common/AndroidLauncher.ts | 6 +++--- src/common/IOSLauncher.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/AndroidLauncher.ts b/src/common/AndroidLauncher.ts index 09c0142..8dcb37b 100644 --- a/src/common/AndroidLauncher.ts +++ b/src/common/AndroidLauncher.ts @@ -40,7 +40,7 @@ export class AndroidLauncher { * @param targetApp The bundle ID of the app to be launched. * @param appConfig An AndroidAppPreviewConfig object containing app configuration info. * @param serverPort The port for local dev server. - * @param targettingLwrServer Indicates whether we're previewing using LWC Dev Server (default behavior) or LWR Server. + * @param targetingLwrServer Indicates whether we're previewing using LWC Dev Server (default behavior) or LWR Server. */ public async launchPreview( compName: string, @@ -49,7 +49,7 @@ export class AndroidLauncher { targetApp: string, appConfig: AndroidAppPreviewConfig | undefined, serverPort: string, - targettingLwrServer: boolean = false + targetingLwrServer: boolean = false ): Promise { const preferredPack = await AndroidUtils.fetchSupportedEmulatorImagePackage(); @@ -106,7 +106,7 @@ export class AndroidLauncher { if (PreviewUtils.isTargetingBrowser(targetApp)) { let url = ''; - if (targettingLwrServer) { + if (targetingLwrServer) { url = `${address}:${port}`; } else { const compPath = diff --git a/src/common/IOSLauncher.ts b/src/common/IOSLauncher.ts index ce98024..a0f2c2f 100644 --- a/src/common/IOSLauncher.ts +++ b/src/common/IOSLauncher.ts @@ -40,7 +40,7 @@ export class IOSLauncher { * @param targetApp The bundle ID of the app to be launched. * @param appConfig An AndroidAppPreviewConfig object containing app configuration info. * @param serverPort The port for local dev server. - * @param targettingLwrServer Indicates whether we're previewing using LWC Dev Server (default behavior) or LWR Server. + * @param targetingLwrServer Indicates whether we're previewing using LWC Dev Server (default behavior) or LWR Server. */ public async launchPreview( compName: string, @@ -49,7 +49,7 @@ export class IOSLauncher { targetApp: string, appConfig: IOSAppPreviewConfig | undefined, serverPort: string, - targettingLwrServer: boolean = false + targetingLwrServer: boolean = false ): Promise { const availableDevices: string[] = await IOSUtils.getSupportedDevices(); const supportedRuntimes: string[] = @@ -107,7 +107,7 @@ export class IOSLauncher { if (PreviewUtils.isTargetingBrowser(targetApp)) { let url = ''; - if (targettingLwrServer) { + if (targetingLwrServer) { url = `${address}:${port}`; } else { const compPath =