Skip to content

Commit

Permalink
chore: add mobile command
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Dec 17, 2023
1 parent cb8623d commit 3d0e178
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/helpers/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,16 +421,13 @@ const WebviewHelpers: WebviewHelpers = {
waitForWebviewMs = 0,
}: GetWebviewsOpts = {},
): Promise<WebviewsMapping[]> {
logger.debug('Getting a list of available webviews');

if (!_.isNumber(waitForWebviewMs)) {
waitForWebviewMs = parseInt(waitForWebviewMs, 10);
if (isNaN(waitForWebviewMs)) {
waitForWebviewMs = 0;
}
waitForWebviewMs = parseInt(waitForWebviewMs, 10) || 0;
}

let webviewsMapping;
logger.debug(`Getting a list of available webviews in ${waitForWebviewMs} ms`);

let webviewsMapping: WebviewsMapping[];
const timer = new timing.Timer().start();
do {
webviewsMapping = (await webviewsFromProcs(adb, androidDeviceSocket)) as WebviewsMapping[];
Expand Down

0 comments on commit 3d0e178

Please sign in to comment.