From 75ad9249d6b9362871bbbefcdf1112f8152da7df Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Thu, 28 Feb 2019 17:01:06 +0530 Subject: [PATCH] add preview url for production --- src/components/ContentWrapFiles.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/ContentWrapFiles.jsx b/src/components/ContentWrapFiles.jsx index aa6b669..502527e 100644 --- a/src/components/ContentWrapFiles.jsx +++ b/src/components/ContentWrapFiles.jsx @@ -22,7 +22,9 @@ import { commandPaletteService } from '../commandPaletteService'; import { PreviewDimension } from './PreviewDimension'; const minCodeWrapSize = 33; -const PREVIEW_FRAME_HOST = window.DEBUG ? 'http://localhost:7888' : ' '; +const PREVIEW_FRAME_HOST = window.DEBUG + ? 'http://localhost:7888' + : `https://preview.${location.host}`; /* global htmlCodeEl */