Skip to content

Commit e19b8d7

Browse files
fix: Race condition in takeScreenshot, causing it to not-crop sometimes (#144)
1 parent 0bc262b commit e19b8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backends/automate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export default class AutomateBackend extends BaseBackend {
181181

182182
const image = await jimp.read(buffer);
183183

184-
await image.write(screenshotPath);
184+
await image.writeAsync(screenshotPath);
185185
}
186186

187187
async resizeWindow (id, width, height, currentWidth, currentHeight) {

0 commit comments

Comments
 (0)