@bigbinary/neeto-media-recorder 2.7.41 → 2.7.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -8,8 +8,8 @@ import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
8
8
  import Alert from '@bigbinary/neetoui/Alert';
9
9
  import { Trans, useTranslation } from 'react-i18next';
10
10
  import axios from 'axios';
11
+ import { Toastr } from '@bigbinary/neeto-atoms';
11
12
  import { copyToClipboard } from '@bigbinary/neeto-commons-frontend/utils/general';
12
- import Toastr from '@bigbinary/neetoui/Toastr';
13
13
  import platform from 'platform';
14
14
  import { isNotNil, min } from 'ramda';
15
15
  import withT from '@bigbinary/neeto-commons-frontend/react-utils/withT';
@@ -1852,10 +1852,12 @@ var useHandleErrors = function useHandleErrors(_ref) {
1852
1852
  if (!isRecorderStatus(SCREEN_RECORDER_STATUS.idle) || error === SCREEN_RECORDER_ERROR.NotAllowedError || error === SCREEN_RECORDER_ERROR.MicPermissionDenied || IS_SAFARI_EXTENSION) {
1853
1853
  if (error !== SCREEN_RECORDER_ERROR.MicPermissionDenied) return noop;
1854
1854
  var cleanupFunction = noop;
1855
+
1856
+ // eslint-disable-next-line promise/catch-or-return
1855
1857
  window.navigator.permissions.query({
1856
1858
  name: "microphone"
1857
1859
  })
1858
- // eslint-disable-next-line promise/prefer-await-to-then
1860
+ // eslint-disable-next-line promise/prefer-await-to-then, promise/always-return
1859
1861
  .then(function (micPermission) {
1860
1862
  var handleChange = function handleChange() {
1861
1863
  if (micPermission.state === "granted" && !requested) {