This commit is contained in:
muwoo
2023-06-26 10:18:06 +08:00
parent e2ea081d25
commit a827438dbe
4 changed files with 44 additions and 16 deletions

View File

@@ -78,6 +78,7 @@ export default () => {
window.setBrowserView(view);
view.webContents.loadURL(pluginIndexPath);
view.webContents.once('dom-ready', () => {
if (!view) return;
const height = pluginSetting && pluginSetting.height;
window.setSize(800, height || 660);
view.setBounds({ x: 0, y: 60, width: 800, height: height || 600 });