Skip to content

🎥 Make videos programmatically with React

replace content

Rishi Raj Jain00bfee878ae0
diff --git a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
index fac9d9c5f8..506ce0d432 100644
--- a/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
+++ b/packages/cli/src/editor/components/RenderModal/RenderModal.tsx
@@ -740,7 +740,7 @@ const RenderModal: React.FC<
if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
id: 'random',
- content: 'Do not save hey',
+ content: 'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),
duration: 1,
});
diff --git a/packages/cli/src/event-source.ts b/packages/cli/src/event-source.ts
index 5d82049590..7a8dc66d5b 100644
--- a/packages/cli/src/event-source.ts
+++ b/packages/cli/src/event-source.ts
@@ -35,10 +35,10 @@ export const openEventSource = () => {
newEvent.type === 'new-input-props' ||
newEvent.type === 'new-env-variables'
) {
- if (window.unsavedProps) {
+ if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
id: 'random',
- content: 'Do not save hey',
+ content: 'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),
duration: 1,
});
diff --git a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
index 5b6ec8a934..9d3ea61eba 100644
--- a/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
+++ b/packages/cli/src/preview-server/error-overlay/react-overlay/listen-to-runtime-errors.ts
@@ -76,7 +76,7 @@ const crashWithFrames = (crash: () => void) => (error: Error) => {
if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
id: 'random',
- content: 'Do not save hey',
+ content: 'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),
duration: 1,
});
diff --git a/packages/cli/src/preview-server/hot-middleware/process-update.ts b/packages/cli/src/preview-server/hot-middleware/process-update.ts
index c10237b4ba..b33b393877 100644
--- a/packages/cli/src/preview-server/hot-middleware/process-update.ts
+++ b/packages/cli/src/preview-server/hot-middleware/process-update.ts
@@ -173,7 +173,7 @@ export const processUpdate = function (
if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
id: 'random',
- content: 'Do not save hey',
+ content: 'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),
duration: 1,
});
@@ -192,7 +192,7 @@ export const processUpdate = function (
if (window.remotion_unsavedProps) {
notificationCenter.current?.addNotification({
id: 'random',
- content: 'Do not save hey',
+ content: 'There are unsaved changes to the props. Do you want to leave?',
created: new Date().getMilliseconds(),
duration: 1,
});