fix https implementation and checkin
This commit is contained in:
No files matched your search
@@ -28,12 +28,12 @@ export const useThermalPrint = () => {
|
||||
const generateQRCode = async (data: string): Promise<string> => {
|
||||
try {
|
||||
const qrDataUrl = await QRCode.toDataURL(data, {
|
||||
errorCorrectionLevel: 'H', // High error correction for better scanning reliability
|
||||
errorCorrectionLevel: 'M', // Medium error correction (better for standard cameras)
|
||||
type: 'image/png',
|
||||
quality: 1,
|
||||
margin: 0.5, // Reduced margin untuk memperkecil Positioning Detection Markers
|
||||
width: 100, // Ukuran QR Code untuk thermal printer 80mm
|
||||
version: 3, // QR Code version 5 (37x37 modules)
|
||||
margin: 2, // Added margin (quiet zone) for better scanner detection
|
||||
width: 150, // Slightly larger width for better clarity
|
||||
version: 3,
|
||||
color: {
|
||||
dark: '#000000',
|
||||
light: '#FFFFFF'
|
||||
|
||||
Reference in New Issue
Block a user