You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
30.0.0
What operating system are you using?
Windows
Operating System Version
win10
What arch are you using?
x64
Last Known Working Electron version
30.0.1
Expected Behavior
// In the main process.const{ BaseWindow, WebContentsView, app }=require('electron')app.whenReady().then(()=>{constwin=newBaseWindow({width: 800,height: 600,titleBarStyle: 'hidden',})win.setTitleBarOverlay({color: '#DEE1E6',symbolColor: 'black',height: 30})constleftView=newWebContentsView()leftView.webContents.loadURL('https://electronjs.org')win.contentView.addChildView(leftView)// const rightView = new WebContentsView()// rightView.webContents.loadURL('https://github.com/electron/electron')// win.contentView.addChildView(rightView)leftView.setBounds({x: 0,y: 0,width: 400,height: 600})// rightView.setBounds({ x: 400, y: 0, width: 400, height: 600 })})
Actual Behavior
Want to support setTitleBarOverlay api
Testcase Gist URL
No response
Additional Information
(node:20488) UnhandledPromiseRejectionWarning: TypeError: win.setTitleBarOverlay is not a function
at E:\Hui\Github\ce-hub\cehub-browser-window\out\main\index.js:18:9
(Use electron --trace-warnings ... to show where the warning was created)
(node:20488) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Electron Version
30.0.0
What operating system are you using?
Windows
Operating System Version
win10
What arch are you using?
x64
Last Known Working Electron version
30.0.1
Expected Behavior
Actual Behavior
Want to support setTitleBarOverlay api
Testcase Gist URL
No response
Additional Information
(node:20488) UnhandledPromiseRejectionWarning: TypeError: win.setTitleBarOverlay is not a function
at E:\Hui\Github\ce-hub\cehub-browser-window\out\main\index.js:18:9
(Use
electron --trace-warnings ...
to show where the warning was created)(node:20488) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)The text was updated successfully, but these errors were encountered: