Skip to content

Commit 8e2fd82

Browse files
committed
foreverScan --> invert(100%)
1 parent 1a857a7 commit 8e2fd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html5-qrcode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ export class Html5Qrcode {
12041204
/* dy= */ 0,
12051205
/* dWidth= */ this.qrRegion.width,
12061206
/* dHeight= */ this.qrRegion.height);
1207-
1207+
this.context!.filter = 'invert(100%)'; // <-- Thx to [thk-root](https://github.com/thk-root)
12081208
const triggerNextScan = () => {
12091209
this.foreverScanTimeout = setTimeout(() => {
12101210
this.foreverScan(

0 commit comments

Comments
 (0)