aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/index.js b/src/index.js
index d9d51fd5b..839f607f6 100644
--- a/src/index.js
+++ b/src/index.js
@@ -96,7 +96,7 @@ if (!gotTheLock) {
96 } else if (argv.includes('--quit')) { 96 } else if (argv.includes('--quit')) {
97 // Needs to be delayed to not interfere with mainWindow.restore(); 97 // Needs to be delayed to not interfere with mainWindow.restore();
98 setTimeout(() => { 98 setTimeout(() => {
99 debug('Quitting Franz via Task'); 99 debug('Quitting Ferdi via Task');
100 app.quit(); 100 app.quit();
101 }, 1); 101 }, 1);
102 } 102 }
@@ -148,7 +148,7 @@ const createWindow = () => {
148 minHeight: 500, 148 minHeight: 500,
149 titleBarStyle: isMac ? 'hidden' : '', 149 titleBarStyle: isMac ? 'hidden' : '',
150 frame: isLinux, 150 frame: isLinux,
151 backgroundColor: !settings.get('darkMode') ? '#3498db' : '#1E1E1E', 151 backgroundColor: !settings.get('darkMode') ? '#7367F0' : '#1E1E1E',
152 webPreferences: { 152 webPreferences: {
153 nodeIntegration: true, 153 nodeIntegration: true,
154 webviewTag: true, 154 webviewTag: true,
@@ -158,7 +158,7 @@ const createWindow = () => {
158 mainWindow.webContents.on('did-finish-load', () => { 158 mainWindow.webContents.on('did-finish-load', () => {
159 const fns = onDidLoadFns; 159 const fns = onDidLoadFns;
160 onDidLoadFns = null; 160 onDidLoadFns = null;
161 for (const fn of fns) { 161 for (const fn of fns) { // eslint-disable-line no-unused-vars
162 fn(mainWindow); 162 fn(mainWindow);
163 } 163 }
164 }); 164 });
@@ -281,7 +281,7 @@ const createWindow = () => {
281// https://electronjs.org/docs/api/chrome-command-line-switches 281// https://electronjs.org/docs/api/chrome-command-line-switches
282// used for Kerberos support 282// used for Kerberos support
283// Usage e.g. MACOS 283// Usage e.g. MACOS
284// $ Franz.app/Contents/MacOS/Franz --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com 284// $ Franz.app/Contents/MacOS/Ferdi --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com
285const argv = require('minimist')(process.argv.slice(1)); 285const argv = require('minimist')(process.argv.slice(1));
286 286
287if (argv['auth-server-whitelist']) { 287if (argv['auth-server-whitelist']) {
@@ -296,10 +296,10 @@ if (argv['auth-negotiate-delegate-whitelist']) {
296// Some APIs can only be used after this event occurs. 296// Some APIs can only be used after this event occurs.
297app.on('ready', () => { 297app.on('ready', () => {
298 // Register App URL 298 // Register App URL
299 app.setAsDefaultProtocolClient('franz'); 299 app.setAsDefaultProtocolClient('ferdi');
300 300
301 if (isDevMode) { 301 if (isDevMode) {
302 app.setAsDefaultProtocolClient('franz-dev'); 302 app.setAsDefaultProtocolClient('ferdi-dev');
303 } 303 }
304 304
305 if (process.platform === 'win32') { 305 if (process.platform === 'win32') {
@@ -308,13 +308,13 @@ app.on('ready', () => {
308 arguments: `${isDevMode ? `${__dirname} ` : ''}--reset-window`, 308 arguments: `${isDevMode ? `${__dirname} ` : ''}--reset-window`,
309 iconPath: asarPath(path.join(isDevMode ? `${__dirname}../src/` : __dirname, 'assets/images/taskbar/win32/display.ico')), 309 iconPath: asarPath(path.join(isDevMode ? `${__dirname}../src/` : __dirname, 'assets/images/taskbar/win32/display.ico')),
310 iconIndex: 0, 310 iconIndex: 0,
311 title: 'Move Franz to Current Display', 311 title: 'Move Ferdi to Current Display',
312 description: 'Restore the position and size of Franz', 312 description: 'Restore the position and size of Ferdi',
313 }, { 313 }, {
314 program: process.execPath, 314 program: process.execPath,
315 arguments: `${isDevMode ? `${__dirname} ` : ''}--quit`, 315 arguments: `${isDevMode ? `${__dirname} ` : ''}--quit`,
316 iconIndex: 0, 316 iconIndex: 0,
317 title: 'Quit Franz', 317 title: 'Quit Ferdi',
318 }]); 318 }]);
319 } 319 }
320 320