forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: standardize FontAwesome usage and improve error handling
- Change <fa> to <font-awesome> for consistent component naming - Add structured error logging in QR scanner services - Fix cacheImage event handling in ActivityListItem - Improve code formatting and error wrapping
This commit is contained in:
@@ -32,9 +32,10 @@ export class WebDialogQRScanner implements QRScannerService {
|
||||
stream.getTracks().forEach((track) => track.stop());
|
||||
return true;
|
||||
} catch (error) {
|
||||
const wrappedError =
|
||||
error instanceof Error ? error : new Error(String(error));
|
||||
logger.error("Error requesting camera permissions:", wrappedError);
|
||||
logger.error("Error requesting camera permissions:", {
|
||||
error: error instanceof Error ? error.message : String(error),
|
||||
stack: error instanceof Error ? error.stack : undefined,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user