mirror of
https://github.com/grocy/grocy.git
synced 2025-08-28 09:01:14 +00:00
Made the used grocycode barcode type configurable
DataMatrix reading via Quagga2 doesn't work currently, so default to an supported 1D barcode (=> Code128)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,5 @@
|
||||
Grocy.Components.BarcodeScanner = {};
|
||||
|
||||
//import Quagga2DatamatrixReader from '../../components_unmanaged/quagga2-reader-datamatrix/index.js'
|
||||
|
||||
Quagga.registerReader("datamatrix", Quagga2DatamatrixReader);
|
||||
|
||||
Grocy.Components.BarcodeScanner.LiveVideoSizeAdjusted = false;
|
||||
Grocy.Components.BarcodeScanner.CheckCapabilities = async function()
|
||||
{
|
||||
@@ -101,7 +97,6 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
|
||||
"ean_reader",
|
||||
"ean_8_reader",
|
||||
"code_128_reader",
|
||||
"datamatrix",
|
||||
"code_39_reader"
|
||||
],
|
||||
debug: {
|
||||
|
Reference in New Issue
Block a user