Skip to content

Commit e13f4b7

Browse files
committed
(#40) Renamed config option for highlight duration to include hint for milliseconds
1 parent cd68122 commit e13f4b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/screen.class.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class Screen {
3232
/**
3333
* Configure highlighting duration
3434
*/
35-
highlightDuration: 500,
35+
highlightDurationMs: 500,
3636

3737
/**
3838
* Configure opacity of highlight window
@@ -131,7 +131,7 @@ export class Screen {
131131
*/
132132
public async highlight(regionToHighlight: Region | Promise<Region>): Promise<Region> {
133133
const highlightRegion = await regionToHighlight;
134-
await this.vision.highlightScreenRegion(highlightRegion, this.config.highlightDuration, this.config.highlightOpacity);
134+
await this.vision.highlightScreenRegion(highlightRegion, this.config.highlightDurationMs, this.config.highlightOpacity);
135135
return highlightRegion;
136136
}
137137

0 commit comments

Comments
 (0)