Make spiffy work with openssl even in statically-linked binary.
This commit is contained in:
parent
fac8d8f4f1
commit
002d677769
3 changed files with 14 additions and 26 deletions
|
@ -12,9 +12,6 @@ function App() {
|
|||
// State to store an array of scanned results for history tracking
|
||||
const [scanHistory, setScanHistory] = useState([]);
|
||||
|
||||
// Initialize audio for the beep sound effect
|
||||
const beepSound = new Audio('/beep.mp3');
|
||||
|
||||
/**
|
||||
* Handles the scanning result.
|
||||
* @param {Error} err - Error, if any, from the scanner.
|
||||
|
@ -26,9 +23,6 @@ function App() {
|
|||
setCurrentData(result.text);
|
||||
setScanHistory(prevHistory => [...prevHistory, result.text]);
|
||||
|
||||
// Play the beep sound for successful scan feedback
|
||||
beepSound.play();
|
||||
|
||||
// Show a success notification using toast
|
||||
toast.success(`Product scanned: ${result.text}`);
|
||||
} else {
|
||||
|
@ -42,10 +36,10 @@ function App() {
|
|||
<Toaster position="top-right" reverseOrder={false} />
|
||||
|
||||
{/* Scanner title */}
|
||||
<div className="title">Scanner</div>
|
||||
<div className="title">BrmInv</div>
|
||||
|
||||
{/* Barcode scanner component */}
|
||||
<div className="scan">
|
||||
<div className="scan" style={{border: '1px solid black'}}>
|
||||
<BarcodeScannerComponent
|
||||
width={500}
|
||||
height={500}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue