From 11d22dcebdfbce163fd3a8a6887bf09a27e10921 Mon Sep 17 00:00:00 2001 From: Edwin Clement Date: Thu, 8 Sep 2022 11:04:22 +0530 Subject: [PATCH] Fixed the ordering of async calls --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f9fd08a..9ca8ffc 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,14 @@ var bs_local_args = { 'key': '' }; // starts the Local instance with the required arguments bs_local.start(bs_local_args, function() { console.log("Started BrowserStackLocal"); -}); -// check if BrowserStack local instance is running -console.log(bs_local.isRunning()); + // check if BrowserStack local instance is running + console.log(bs_local.isRunning()); -// stop the Local instance -bs_local.stop(function() { - console.log("Stopped BrowserStackLocal"); + // stop the Local instance + bs_local.stop(function() { + console.log("Stopped BrowserStackLocal"); + }); }); ```