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