my question is how can I make a custom menu bar for new window that loads URL not file in my local.
newWin = new BrowserWindow({ parent: win, width: 1200, height: 800, frame: false, show: true})
newWin.loadURL('https://foo.bar')
so I know I can use { frame: false } and inject some HTML CSS tags for handling this. https://github.com/binaryfunt/electron-seamless-titlebar-tutorial . according to this useful article. but what about loading URLs?
You can use BrowserView inside a BrowserWindow where you put your custom title bar.
You can image BrowserView like an iframe.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.