core-outline 1.1.2 → 1.1.3
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/dist/index.es.js
CHANGED
|
@@ -3956,6 +3956,7 @@ const CoreOutline = ({
|
|
|
3956
3956
|
return () => {
|
|
3957
3957
|
if (stopFn) {
|
|
3958
3958
|
stopFn();
|
|
3959
|
+
saveEvents(events);
|
|
3959
3960
|
recorderActive.current = false;
|
|
3960
3961
|
}
|
|
3961
3962
|
};
|
|
@@ -3966,7 +3967,7 @@ const CoreOutline = ({
|
|
|
3966
3967
|
headers: {
|
|
3967
3968
|
'Content-Type': 'application/json'
|
|
3968
3969
|
},
|
|
3969
|
-
body: events
|
|
3970
|
+
body: JSON.stringify(events)
|
|
3970
3971
|
};
|
|
3971
3972
|
fetch('http://localhost:8000/generate-s3-url').then(response => response.json()).then(data => {
|
|
3972
3973
|
const uploadURL = data.signed_url;
|
package/dist/index.js
CHANGED
|
@@ -3962,6 +3962,7 @@ const CoreOutline = ({
|
|
|
3962
3962
|
return () => {
|
|
3963
3963
|
if (stopFn) {
|
|
3964
3964
|
stopFn();
|
|
3965
|
+
saveEvents(events);
|
|
3965
3966
|
recorderActive.current = false;
|
|
3966
3967
|
}
|
|
3967
3968
|
};
|
|
@@ -3972,7 +3973,7 @@ const CoreOutline = ({
|
|
|
3972
3973
|
headers: {
|
|
3973
3974
|
'Content-Type': 'application/json'
|
|
3974
3975
|
},
|
|
3975
|
-
body: events
|
|
3976
|
+
body: JSON.stringify(events)
|
|
3976
3977
|
};
|
|
3977
3978
|
fetch('http://localhost:8000/generate-s3-url').then(response => response.json()).then(data => {
|
|
3978
3979
|
const uploadURL = data.signed_url;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ const CoreOutline = ({ children }) => {
|
|
|
10
10
|
console.log(currentPage);
|
|
11
11
|
const handleNavigation = () => {
|
|
12
12
|
setCurrentPage(window.location.href);
|
|
13
|
-
saveEvents(
|
|
13
|
+
saveEvents(events);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
window.addEventListener('popstate', handleNavigation);
|
|
@@ -41,6 +41,7 @@ const CoreOutline = ({ children }) => {
|
|
|
41
41
|
return () => {
|
|
42
42
|
if (stopFn) {
|
|
43
43
|
stopFn();
|
|
44
|
+
saveEvents(events);
|
|
44
45
|
|
|
45
46
|
recorderActive.current = false;
|
|
46
47
|
}
|