mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-28 17:20:13 +02:00
integrate with wbmakr.com
This commit is contained in:
@@ -21,9 +21,9 @@ const minCodeWrapSize = 33;
|
|||||||
/* global htmlCodeEl
|
/* global htmlCodeEl
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const PREVIEW_FRAME_HOST = window.DEBUG
|
const PREVIEW_FRAME_HOST = !window.DEBUG
|
||||||
? 'http://localhost:7888'
|
? 'http://localhost:7888'
|
||||||
: `https://preview.${location.host}`;
|
: `https://wbmakr.com`;
|
||||||
|
|
||||||
export default class ContentWrap extends Component {
|
export default class ContentWrap extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@@ -540,7 +540,7 @@ export default class ContentWrap extends Component {
|
|||||||
document.body.classList.add('is-detached-mode');
|
document.body.classList.add('is-detached-mode');
|
||||||
|
|
||||||
this.detachedWindow = window.open(
|
this.detachedWindow = window.open(
|
||||||
'./preview.html',
|
`${PREVIEW_FRAME_HOST}/preview.html`,
|
||||||
'Web Maker',
|
'Web Maker',
|
||||||
`width=${iframeWidth},height=${iframeHeight},resizable,scrollbars=yes,status=1`
|
`width=${iframeWidth},height=${iframeHeight},resizable,scrollbars=yes,status=1`
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user