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.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			783 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			783 B
		
	
	
	
		
			JavaScript
		
	
| /* eslint-disable @typescript-eslint/no-var-requires */
 | |
| /* global window */
 | |
| 
 | |
| const { ipcRenderer } = require('electron');
 | |
| const url = require('url');
 | |
| const os = require('os');
 | |
| const { setupI18n } = require('./ts/util/i18n/i18n');
 | |
| 
 | |
| const config = url.parse(window.location.toString(), true).query;
 | |
| const { crowdinLocale } = ipcRenderer.sendSync('locale-data');
 | |
| 
 | |
| window.theme = config.theme;
 | |
| window.i18n = setupI18n({
 | |
|   crowdinLocale,
 | |
| });
 | |
| 
 | |
| window.getOSRelease = () =>
 | |
|   `${os.type()} ${os.release()}, Node.js ${config.node_version} ${os.platform()} ${os.arch()}`;
 | |
| window.getEnvironment = () => config.environment;
 | |
| window.getVersion = () => config.version;
 | |
| window.getCommitHash = () => config.commitHash;
 | |
| window.getAppInstance = () => config.appInstance;
 | |
| 
 | |
| require('./ts/util/logging');
 |