chore: lint
This commit is contained in:
@@ -72,7 +72,7 @@ export const createRemoteBrowserForRun = (options: RemoteBrowserOptions): string
|
|||||||
* @returns {Promise<boolean>}
|
* @returns {Promise<boolean>}
|
||||||
* @category BrowserManagement-Controller
|
* @category BrowserManagement-Controller
|
||||||
*/
|
*/
|
||||||
export const destroyRemoteBrowser = async (id: string) : Promise<boolean> => {
|
export const destroyRemoteBrowser = async (id: string): Promise<boolean> => {
|
||||||
const browserSession = browserPool.getRemoteBrowser(id);
|
const browserSession = browserPool.getRemoteBrowser(id);
|
||||||
if (browserSession) {
|
if (browserSession) {
|
||||||
logger.log('debug', `Switching off the browser with id: ${id}`);
|
logger.log('debug', `Switching off the browser with id: ${id}`);
|
||||||
@@ -88,7 +88,7 @@ export const destroyRemoteBrowser = async (id: string) : Promise<boolean> => {
|
|||||||
* @returns {string | null}
|
* @returns {string | null}
|
||||||
* @category BrowserManagement-Controller
|
* @category BrowserManagement-Controller
|
||||||
*/
|
*/
|
||||||
export const getActiveBrowserId = (): string | null=> {
|
export const getActiveBrowserId = (): string | null => {
|
||||||
return browserPool.getActiveBrowserId();
|
return browserPool.getActiveBrowserId();
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -126,7 +126,7 @@ export const getRemoteBrowserCurrentTabs = (id: string): string[] | undefined =>
|
|||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
* @category BrowserManagement-Controller
|
* @category BrowserManagement-Controller
|
||||||
*/
|
*/
|
||||||
export const interpretWholeWorkflow = async() => {
|
export const interpretWholeWorkflow = async () => {
|
||||||
const id = getActiveBrowserId();
|
const id = getActiveBrowserId();
|
||||||
if (id) {
|
if (id) {
|
||||||
const browser = browserPool.getRemoteBrowser(id);
|
const browser = browserPool.getRemoteBrowser(id);
|
||||||
@@ -146,7 +146,7 @@ export const interpretWholeWorkflow = async() => {
|
|||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
* @category BrowserManagement-Controller
|
* @category BrowserManagement-Controller
|
||||||
*/
|
*/
|
||||||
export const stopRunningInterpretation = async() => {
|
export const stopRunningInterpretation = async () => {
|
||||||
const id = getActiveBrowserId();
|
const id = getActiveBrowserId();
|
||||||
if (id) {
|
if (id) {
|
||||||
const browser = browserPool.getRemoteBrowser(id);
|
const browser = browserPool.getRemoteBrowser(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user