fix lint errors

This commit is contained in:
Labhansh Agrawal 2023-07-10 19:26:33 +05:30
parent 28321236d6
commit ab3d4b7e8f
2 changed files with 10 additions and 5 deletions

View file

@ -112,7 +112,11 @@ const Tab = (props: TabProps) => {
} }
.tab_icon { .tab_icon {
transition: opacity 0.2s ease, color 0.2s ease, transform 0.25s ease, background-color 0.1s ease; transition:
opacity 0.2s ease,
color 0.2s ease,
transform 0.25s ease,
background-color 0.1s ease;
pointer-events: none; pointer-events: none;
position: absolute; position: absolute;
right: 7px; right: 7px;

View file

@ -38,10 +38,11 @@ test.before(async () => {
test.after(async () => { test.after(async () => {
await app await app
.evaluate(({BrowserWindow}) => .evaluate(
BrowserWindow.getFocusedWindow() ({BrowserWindow}) =>
?.capturePage() BrowserWindow.getFocusedWindow()
.then((img) => img.toPNG().toString('base64')) ?.capturePage()
.then((img) => img.toPNG().toString('base64'))
) )
.then((img) => Buffer.from(img || '', 'base64')) .then((img) => Buffer.from(img || '', 'base64'))
.then(async (imageBuffer) => { .then(async (imageBuffer) => {