style: improve code formatting and type safety

- Add proper type annotation for onDetect result parameter
- Fix indentation and line wrapping in template
- Remove unused WebInlineQRScanner import
- Clean up button attribute ordering
- Fix whitespace and formatting issues
- Remove unused empty divs
This commit is contained in:
Matt Raymer
2025-05-06 02:45:24 -04:00
parent 1ddc93d15e
commit 3cf256cf3a
6 changed files with 391 additions and 2574 deletions

View File

@@ -156,10 +156,10 @@ export class WebInlineQRScanner implements QRScannerService {
try {
logger.log("[WebInlineQRScanner] Stopping scan");
// Stop all tracks in the stream
if (this.stream) {
this.stream.getTracks().forEach(track => track.stop());
this.stream.getTracks().forEach((track) => track.stop());
this.stream = null;
}
@@ -192,4 +192,4 @@ export class WebInlineQRScanner implements QRScannerService {
logger.error("Error during cleanup:", error);
}
}
}
}