Mutable config now
This commit is contained in:
		
							parent
							
								
									94c36a7ce9
								
							
						
					
					
						commit
						51fa07158f
					
				@ -6,7 +6,7 @@ const cfg = require('./src/config.js')
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
let win
 | 
			
		||||
const config 	= cfg.get_config(cfg.load_parser())
 | 
			
		||||
let config 	= cfg.get_config(cfg.load_parser())
 | 
			
		||||
 | 
			
		||||
function createWin() {
 | 
			
		||||
	win = new BrowserWindow({
 | 
			
		||||
@ -52,3 +52,8 @@ app.on('activate', () => {
 | 
			
		||||
ipcMain.on('config-request', (event, _arg) => {
 | 
			
		||||
	event.returnValue = config
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
// TODO: do some kind logging here
 | 
			
		||||
ipcMain.on('http-failure', (event, msg) => {
 | 
			
		||||
	console.log(event, msg)
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user