format code (#152)
This commit is contained in:
+4
-7
@@ -1286,13 +1286,10 @@ async function handleStyles(
|
||||
// Check if it's a ref - single element
|
||||
if (browser.isRef(command.selector)) {
|
||||
const locator = browser.getLocator(command.selector);
|
||||
const element = (await locator.evaluate(
|
||||
(el, script) => {
|
||||
const fn = eval(script);
|
||||
return fn(el);
|
||||
},
|
||||
extractStylesScript
|
||||
)) as StylesData['elements'][0];
|
||||
const element = (await locator.evaluate((el, script) => {
|
||||
const fn = eval(script);
|
||||
return fn(el);
|
||||
}, extractStylesScript)) as StylesData['elements'][0];
|
||||
return successResponse(command.id, { elements: [element] });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user