[Bootstrap] Globalise some expected things for later
This commit is contained in:
		
							parent
							
								
									b3d77d0d66
								
							
						
					
					
						commit
						6320b78f58
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		
							
								
								
									
										4
									
								
								src/bootstrap.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								src/bootstrap.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,8 +1,12 @@ | |||
| const { app } = require('electron'); | ||||
| 
 | ||||
| const requireNative = require('./utils/requireNative'); | ||||
| 
 | ||||
| const paths = require('./paths'); | ||||
| global.moduleDataPath = paths.getModuleDataPath(); // Global because discord
 | ||||
| 
 | ||||
| const buildInfo = require('./utils/buildInfo'); | ||||
| app.setVersion(buildInfo.version); // More global because discord / electron
 | ||||
| 
 | ||||
| log('BuildInfo', 'Loaded build info', buildInfo); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue