fix: changed position of error message, disabled buttons when error is showing

This commit is contained in:
Dan Ditomaso
2025-01-19 22:42:38 -05:00
parent 225d6055d4
commit ebb32f0893
3 changed files with 15 additions and 26 deletions
+2 -2
View File
@@ -10,8 +10,8 @@ interface BrowserSupport {
export function useBrowserFeatureDetection(): BrowserSupport {
const support = useMemo(() => {
const features: [BrowserFeature, boolean][] = [
['Web Bluetooth', !!navigator.bluetooth],
['Web Serial', !!navigator.serial],
['Web Bluetooth', !!navigator?.bluetooth],
['Web Serial', !!navigator?.serial],
['Secure Context', window.location.protocol === 'https:' || window.location.hostname === 'localhost']
];