feat: #20442 adds fiddle for opening external links and the pro version of opening all outbound links (#20763)
This commit is contained in:
		
					parent
					
						
							
								97959b5e5c
							
						
					
				
			
			
				commit
				
					
						09533e77da
					
				
			
		
					 3 changed files with 113 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,25 @@
 | 
			
		|||
const { app, BrowserWindow } = require('electron')
 | 
			
		||||
 | 
			
		||||
let mainWindow = null
 | 
			
		||||
 | 
			
		||||
function createWindow () {
 | 
			
		||||
  const windowOptions = {
 | 
			
		||||
    width: 600,
 | 
			
		||||
    height: 400,
 | 
			
		||||
    title: 'Open External Links',
 | 
			
		||||
    webPreferences: {
 | 
			
		||||
      nodeIntegration: true
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  mainWindow = new BrowserWindow(windowOptions)
 | 
			
		||||
  mainWindow.loadFile('index.html')
 | 
			
		||||
 | 
			
		||||
  mainWindow.on('closed', () => {
 | 
			
		||||
    mainWindow = null
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
app.on('ready', () => {
 | 
			
		||||
  createWindow()
 | 
			
		||||
})
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue