* docs: add custom titlebar example * docs: add links and other small edits * docs: add panel window docs * docs: remove panel example * docs: specify expected emphasis style * docs: responding to feedback * docs: fix section names in links * docs: rework baseWindow note * docs: making window customization its own section * responding to feedback
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			270 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			270 B
			
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
const { app, BrowserWindow } = require('electron')
 | 
						|
 | 
						|
function createWindow () {
 | 
						|
  const win = new BrowserWindow({
 | 
						|
    // remove the default titlebar
 | 
						|
    titleBarStyle: 'hidden'
 | 
						|
  })
 | 
						|
  win.loadURL('https://example.com')
 | 
						|
}
 | 
						|
 | 
						|
app.whenReady().then(() => {
 | 
						|
  createWindow()
 | 
						|
})
 |