mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
ble/alerts/BluetoothNotAvailable: add browser support paragraph
Browsers such as Brave and Opera are based on Chromium but disable Web Bluetooth. In this case, we can't tell the difference between the browser not supporting it or the Bluetooth adapter not being present. So we make the error message cover all possibilities. Issue: https://github.com/pybricks/support/discussions/804 Issue: https://github.com/pybricks/support/issues/635
This commit is contained in:
committed by
David Lechner
parent
bdf9f3c850
commit
597419be47
@@ -12,6 +12,7 @@ const BluetoothNotAvailable: React.VoidFunctionComponent = () => {
|
||||
<>
|
||||
<p>{i18n.translate('bluetoothNotAvailable.message')}</p>
|
||||
<p>{i18n.translate('bluetoothNotAvailable.suggestion')}</p>
|
||||
<p>{i18n.translate('bluetoothNotAvailable.browserSupport')}</p>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
},
|
||||
"bluetoothNotAvailable": {
|
||||
"message": "No Bluetooth adapter could be found.",
|
||||
"suggestion": "Please connect or enable a Bluetooth Low Energy adapter and restart the browser."
|
||||
"suggestion": "Please connect or enable a Bluetooth Low Energy adapter and restart the browser.",
|
||||
"browserSupport": "Some browsers like Brave and Opera do not support Web Bluetooth. Be sure to use a supported browser such as Chrome or Edge."
|
||||
},
|
||||
"noGatt": {
|
||||
"message": "The web browser did not give permission to use Bluetooth Low Energy."
|
||||
|
||||
Reference in New Issue
Block a user