diff options
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/index.js b/src/index.js index d9d51fd5b..73fc6e299 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -37,7 +37,7 @@ import { asarPath } from './helpers/asar-helpers'; | |||
37 | import { isValidExternalURL } from './helpers/url-helpers'; | 37 | import { isValidExternalURL } from './helpers/url-helpers'; |
38 | /* eslint-enable import/first */ | 38 | /* eslint-enable import/first */ |
39 | 39 | ||
40 | const debug = require('debug')('Franz:App'); | 40 | const debug = require('debug')('Ferdi:App'); |
41 | 41 | ||
42 | // Keep a global reference of the window object, if you don't, the window will | 42 | // Keep a global reference of the window object, if you don't, the window will |
43 | // be closed automatically when the JavaScript object is garbage collected. | 43 | // be closed automatically when the JavaScript object is garbage collected. |
@@ -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 |
285 | const argv = require('minimist')(process.argv.slice(1)); | 285 | const argv = require('minimist')(process.argv.slice(1)); |
286 | 286 | ||
287 | if (argv['auth-server-whitelist']) { | 287 | if (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. |
297 | app.on('ready', () => { | 297 | app.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 | ||