我的问题是如何为新窗口创建一个自定义菜单栏,以加载 URL 而不是本地文件。
newWin = new BrowserWindow({ parent: win, width: 1200, height: 800, frame: false, show: true})
newWin.loadURL('https://foo.bar')
所以我知道我可以使用 { frame: false } 并注入一些 HTML CSS 标签来处理这个问题。https://github.com/binaryfunt/electron-seamless-titlebar-tutorial。根据这篇有用的文章。但是加载 URL 呢?