From 5ed01966d933440991a3403d18d8a372eedd71a9 Mon Sep 17 00:00:00 2001 From: Ostap Kravchuk Date: Wed, 16 Jan 2019 15:33:43 +0100 Subject: [PATCH 1/2] Unable to reload Preview panel in non-development build #349 --- .../projecteditor/sidePanels/preview/previewSidePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/projecteditor/sidePanels/preview/previewSidePanel.js b/src/components/projecteditor/sidePanels/preview/previewSidePanel.js index 80d75bb6..b70744ed 100644 --- a/src/components/projecteditor/sidePanels/preview/previewSidePanel.js +++ b/src/components/projecteditor/sidePanels/preview/previewSidePanel.js @@ -36,7 +36,7 @@ export class PreviewSidePanel extends React.Component { refresh() { const iframe = document.getElementById(IFRAME_ID); - iframe.contentWindow.location.reload(); + iframe.contentWindow.location.replace(`${getIframeSrc()}`); } tryDownload() { From e8dcaab49036834ed1e17e343860971967ea1176 Mon Sep 17 00:00:00 2001 From: Ostap Kravchuk Date: Wed, 16 Jan 2019 15:38:10 +0100 Subject: [PATCH 2/2] Remove quotes --- .../projecteditor/sidePanels/preview/previewSidePanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/projecteditor/sidePanels/preview/previewSidePanel.js b/src/components/projecteditor/sidePanels/preview/previewSidePanel.js index b70744ed..5ddf9d0f 100644 --- a/src/components/projecteditor/sidePanels/preview/previewSidePanel.js +++ b/src/components/projecteditor/sidePanels/preview/previewSidePanel.js @@ -36,7 +36,7 @@ export class PreviewSidePanel extends React.Component { refresh() { const iframe = document.getElementById(IFRAME_ID); - iframe.contentWindow.location.replace(`${getIframeSrc()}`); + iframe.contentWindow.location.replace(getIframeSrc()); } tryDownload() {