You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			21 lines
		
	
	
		
			625 B
		
	
	
	
		
			JavaScript
		
	
| /* global window */
 | |
| 
 | |
| const { ipcRenderer } = require('electron');
 | |
| const url = require('url');
 | |
| const i18n = require('./ts/util/i18n');
 | |
| 
 | |
| const config = url.parse(window.location.toString(), true).query;
 | |
| const { locale } = config;
 | |
| const localeMessages = ipcRenderer.sendSync('locale-data');
 | |
| 
 | |
| window.getEnvironment = () => config.environment;
 | |
| window.getVersion = () => config.version;
 | |
| window.getCommitHash = () => config.commitHash;
 | |
| window.getAppInstance = () => config.appInstance;
 | |
| 
 | |
| window.closeAbout = () => ipcRenderer.send('close-about');
 | |
| 
 | |
| window.i18n = i18n.setupi18n(locale, localeMessages);
 | |
| 
 | |
| require('./ts/util/logging');
 |