diff --git a/src/alerts/UnexpectedErrorAlert.tsx b/src/alerts/UnexpectedErrorAlert.tsx index 9239dd3f..f84e0821 100644 --- a/src/alerts/UnexpectedErrorAlert.tsx +++ b/src/alerts/UnexpectedErrorAlert.tsx @@ -2,7 +2,14 @@ // Copyright (c) 2022 The Pybricks Authors import './UnexpectedErrorAlert.scss'; -import { AnchorButton, Button, ButtonGroup, Collapse, Intent } from '@blueprintjs/core'; +import { + AnchorButton, + Button, + ButtonGroup, + Collapse, + Intent, + Pre, +} from '@blueprintjs/core'; import React, { useState } from 'react'; import { useId } from 'react-aria'; import { CreateToast } from '../i18nToaster'; @@ -33,7 +40,7 @@ const UnexpectedErrorAlert: React.VoidFunctionComponent{i18n.translate('technicalInfo')} -
{error.stack}
+
{error.stack}
diff --git a/src/ble/alerts/NoWebBluetooth.tsx b/src/ble/alerts/NoWebBluetooth.tsx index cb1c82eb..c7d88e5a 100644 --- a/src/ble/alerts/NoWebBluetooth.tsx +++ b/src/ble/alerts/NoWebBluetooth.tsx @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT // Copyright (c) 2022 The Pybricks Authors -import { Button, Intent } from '@blueprintjs/core'; +import { Button, Code, Intent } from '@blueprintjs/core'; import React from 'react'; import { CreateToast } from '../../i18nToaster'; import { isIOS, isLinux } from '../../utils/os'; @@ -19,9 +19,9 @@ const NoWebBluetooth: React.VoidFunctionComponent = () => { <>

{i18n.translate('noWebBluetooth.linux')}

- + chrome://flags/#enable-experimental-web-platform-features - +