mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
Set inversion mode for scanner to 'both'
This commit is contained in:
committed by
benthecarman
parent
7e863f4ef4
commit
208f42fbed
@@ -73,6 +73,9 @@ export function Reader(props: { onResult: (result: string) => void }) {
|
||||
scanner = new QrScanner(container, handleResult, {
|
||||
returnDetailedScanResult: true
|
||||
});
|
||||
// Set the inversion mode to scan both dark on light and light on dark
|
||||
// This should make us more flexible in scanning QR codes
|
||||
scanner.setInversionMode("both");
|
||||
await scanner.start();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user