diff --git a/src/component/plotly-dash-preview/render.js b/src/component/plotly-dash-preview/render.js index 41a2db19..2823b874 100644 --- a/src/component/plotly-dash-preview/render.js +++ b/src/component/plotly-dash-preview/render.js @@ -26,6 +26,7 @@ function render (info, opts, sendToMain) { // Clear cookies before loading URL session.clearStorageData({}, () => { win.loadURL(info.url) + win.webContents.executeJavaScript(`window.resizeTo(${windowOpts.width}, ${windowOpts.height})`) }) const done = errorCode => {