From 8d36cd94f99a8d0479ab34f5d354198d89675293 Mon Sep 17 00:00:00 2001 From: Tharaka Wijebandara Date: Wed, 4 Oct 2017 22:20:54 +0530 Subject: [PATCH] Make open-in-editor functionality to work with new iframe script --- packages/react-error-overlay/src/iframeScript.js | 11 ++++++++--- packages/react-error-overlay/src/index.js | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/packages/react-error-overlay/src/iframeScript.js b/packages/react-error-overlay/src/iframeScript.js index c95ea36b1a4..161d3451e8f 100644 --- a/packages/react-error-overlay/src/iframeScript.js +++ b/packages/react-error-overlay/src/iframeScript.js @@ -19,17 +19,22 @@ function render({ currentBuildError, currentRuntimeErrorRecords, dismissRuntimeErrors, - launchEditorEndpoint, + openInEditor, }) { if (currentBuildError) { - return ; + return ( + + ); } if (currentRuntimeErrorRecords.length > 0) { return ( ); } diff --git a/packages/react-error-overlay/src/index.js b/packages/react-error-overlay/src/index.js index 488e04a2d71..0b741b8222c 100644 --- a/packages/react-error-overlay/src/index.js +++ b/packages/react-error-overlay/src/index.js @@ -153,7 +153,7 @@ function updateIframeContent() { currentBuildError, currentRuntimeErrorRecords, dismissRuntimeErrors, - launchEditorEndpoint: currentRuntimeErrorOptions.launchEditorEndpoint, + openInEditor, }); if (!isRendered) {