mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-11-04 05:53:21 +00:00 
			
		
		
		
	🚚 moved files to renderer
This commit is contained in:
		@@ -171,7 +171,7 @@ function createMainWindow() {
 | 
			
		||||
		minWidth: 600,
 | 
			
		||||
		minHeight: 400,
 | 
			
		||||
		webPreferences: {
 | 
			
		||||
			preload: path.join(__dirname, 'preload.js'),
 | 
			
		||||
			preload: path.join(__dirname, '../renderer/js/preload.js'),
 | 
			
		||||
			plugins: true,
 | 
			
		||||
			allowDisplayingInsecureContent: true,
 | 
			
		||||
			nodeIntegration: false
 | 
			
		||||
@@ -286,7 +286,7 @@ app.on('ready', () => {
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	page.on('dom-ready', () => {
 | 
			
		||||
		page.insertCSS(fs.readFileSync(path.join(__dirname, 'preload.css'), 'utf8'));
 | 
			
		||||
		page.insertCSS(fs.readFileSync(path.join(__dirname, '../renderer/css/preload.css'), 'utf8'));
 | 
			
		||||
		mainWindow.show();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -13,7 +13,7 @@ process.once('loaded', () => {
 | 
			
		||||
// eslint-disable-next-line import/no-unassigned-import
 | 
			
		||||
require('./domain');
 | 
			
		||||
// eslint-disable-next-line import/no-unassigned-import
 | 
			
		||||
require('../renderer/js/tray.js');
 | 
			
		||||
require('./tray.js');
 | 
			
		||||
// Calling Tray.js in renderer process everytime app window loads
 | 
			
		||||
 | 
			
		||||
// Handle zooming functionality
 | 
			
		||||
		Reference in New Issue
	
	Block a user