@bigbinary/neeto-media-recorder 2.7.21 → 2.7.23
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/core.js +48 -42
- package/core.js.map +1 -1
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +3 -2
package/index.js
CHANGED
|
@@ -1327,12 +1327,13 @@ var useAudioIsCapturing = function useAudioIsCapturing(_ref) {
|
|
|
1327
1327
|
|
|
1328
1328
|
// Check if we're in a Chrome extension context
|
|
1329
1329
|
if (hasChrome) {
|
|
1330
|
-
|
|
1330
|
+
var _chrome, _chrome$runtime, _chrome$runtime$onMes;
|
|
1331
|
+
(_chrome = chrome) === null || _chrome === void 0 ? void 0 : (_chrome$runtime = _chrome.runtime) === null || _chrome$runtime === void 0 ? void 0 : (_chrome$runtime$onMes = _chrome$runtime.onMessage) === null || _chrome$runtime$onMes === void 0 ? void 0 : _chrome$runtime$onMes.addListener(handleMessage);
|
|
1331
1332
|
}
|
|
1332
1333
|
return function () {
|
|
1333
1334
|
if (hasChrome) {
|
|
1334
|
-
var
|
|
1335
|
-
(
|
|
1335
|
+
var _chrome2, _chrome2$runtime, _chrome2$runtime$onMe;
|
|
1336
|
+
(_chrome2 = chrome) === null || _chrome2 === void 0 ? void 0 : (_chrome2$runtime = _chrome2.runtime) === null || _chrome2$runtime === void 0 ? void 0 : (_chrome2$runtime$onMe = _chrome2$runtime.onMessage) === null || _chrome2$runtime$onMe === void 0 ? void 0 : _chrome2$runtime$onMe.removeListener(handleMessage);
|
|
1336
1337
|
}
|
|
1337
1338
|
};
|
|
1338
1339
|
}, []);
|