@bigbinary/neeto-media-recorder 2.7.3 → 2.7.6
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 +125 -111
- package/core.js.map +1 -1
- package/index.js +32 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1047,14 +1047,36 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
|
|
|
1047
1047
|
var _useTranslation = useTranslation(),
|
|
1048
1048
|
t = _useTranslation.t;
|
|
1049
1049
|
useEffect(function () {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1050
|
+
var fetchBaseURL = /*#__PURE__*/function () {
|
|
1051
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
1052
|
+
var _yield$chrome$storage, baseURL;
|
|
1053
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
1054
|
+
while (1) switch (_context.prev = _context.next) {
|
|
1055
|
+
case 0:
|
|
1056
|
+
if (IS_EXTENSION) {
|
|
1057
|
+
_context.next = 3;
|
|
1058
|
+
break;
|
|
1059
|
+
}
|
|
1060
|
+
setBaseURL(window.location.origin);
|
|
1061
|
+
return _context.abrupt("return");
|
|
1062
|
+
case 3:
|
|
1063
|
+
_context.next = 5;
|
|
1064
|
+
return chrome.storage.local.get("baseURL");
|
|
1065
|
+
case 5:
|
|
1066
|
+
_yield$chrome$storage = _context.sent;
|
|
1067
|
+
baseURL = _yield$chrome$storage.baseURL;
|
|
1068
|
+
setBaseURL(baseURL);
|
|
1069
|
+
case 8:
|
|
1070
|
+
case "end":
|
|
1071
|
+
return _context.stop();
|
|
1072
|
+
}
|
|
1073
|
+
}, _callee);
|
|
1074
|
+
}));
|
|
1075
|
+
return function fetchBaseURL() {
|
|
1076
|
+
return _ref2.apply(this, arguments);
|
|
1077
|
+
};
|
|
1078
|
+
}();
|
|
1079
|
+
fetchBaseURL();
|
|
1058
1080
|
}, []);
|
|
1059
1081
|
useEffect(function () {
|
|
1060
1082
|
if (!window.document.hasFocus() || !recording.id || isEmpty(baseURL)) {
|
|
@@ -1065,7 +1087,8 @@ var UploadingInProgress = function UploadingInProgress(_ref) {
|
|
|
1065
1087
|
});
|
|
1066
1088
|
}, [recording.id, baseURL]);
|
|
1067
1089
|
var handleRecordingBlobDownload = function handleRecordingBlobDownload() {
|
|
1068
|
-
|
|
1090
|
+
var _recording$title;
|
|
1091
|
+
downloadRecordingBlob(screenRecorder.getWebmMediaBlob(), (_recording$title = recording.title) !== null && _recording$title !== void 0 ? _recording$title : "NeetoRecord-recording");
|
|
1069
1092
|
};
|
|
1070
1093
|
return /*#__PURE__*/jsxs("div", {
|
|
1071
1094
|
className: "flex h-screen w-full flex-col items-center justify-center",
|