@bigbinary/neeto-media-recorder 2.7.41 → 2.7.44
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/constants.js +4 -1
- package/constants.js.map +1 -1
- package/core.js.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/package.json +35 -19
- package/src/constants.js +152 -0
- package/src/index.js +5 -0
- package/v2/index.js +2536 -0
- package/v2/index.js.map +1 -0
package/index.js
CHANGED
|
@@ -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) {
|