aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Aditya Mangalampalli <aditya.mangalampalli@gmail.com>2022-04-15 02:00:25 -0700
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-16 21:57:57 +0530
commit210131ca184c3aa043371857c022aa1aa149efbf (patch)
tree6bc4e10a1540e55a66146c099bc468a12287425e /src/index.ts
parentUpdate submodule url to ferdium-recipes (#1) (diff)
downloadferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz
ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst
ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip
Matched casing for almost all replacements
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/index.ts b/src/index.ts
index d46641fe1..c61523584 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -44,7 +44,7 @@ import { asarPath } from './helpers/asar-helpers';
44import { openExternalUrl } from './helpers/url-helpers'; 44import { openExternalUrl } from './helpers/url-helpers';
45import userAgent from './helpers/userAgent-helpers'; 45import userAgent from './helpers/userAgent-helpers';
46 46
47const debug = require('debug')('Ferdi:App'); 47const debug = require('debug')('Ferdium:App');
48 48
49// Globally set useragent to fix user agent override in service workers 49// Globally set useragent to fix user agent override in service workers
50debug('Set userAgent to ', userAgent()); 50debug('Set userAgent to ', userAgent());
@@ -139,7 +139,7 @@ if (!gotTheLock) {
139 } else if (argv.includes('--quit')) { 139 } else if (argv.includes('--quit')) {
140 // Needs to be delayed to not interfere with mainWindow.restore(); 140 // Needs to be delayed to not interfere with mainWindow.restore();
141 setTimeout(() => { 141 setTimeout(() => {
142 debug('Quitting Ferdi via Task'); 142 debug('Quitting Ferdium via Task');
143 app.quit(); 143 app.quit();
144 }, 1); 144 }, 1);
145 } 145 }
@@ -417,7 +417,7 @@ const createWindow = () => {
417// https://electronjs.org/docs/api/chrome-command-line-switches 417// https://electronjs.org/docs/api/chrome-command-line-switches
418// used for Kerberos support 418// used for Kerberos support
419// Usage e.g. MACOS 419// Usage e.g. MACOS
420// $ Ferdi.app/Contents/MacOS/Ferdi --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com 420// $ Ferdium.app/Contents/MacOS/Ferdium --auth-server-whitelist *.mydomain.com --auth-negotiate-delegate-whitelist *.mydomain.com
421const argv = require('minimist')(process.argv.slice(1)); 421const argv = require('minimist')(process.argv.slice(1));
422 422
423if (argv['auth-server-whitelist']) { 423if (argv['auth-server-whitelist']) {
@@ -448,7 +448,7 @@ app.on('ready', () => {
448 enforceMacOSAppLocation(); 448 enforceMacOSAppLocation();
449 449
450 // Register App URL 450 // Register App URL
451 const protocolClient = isDevMode ? 'ferdi-dev' : 'ferdi'; 451 const protocolClient = isDevMode ? 'ferdium-dev' : 'ferdium';
452 if (!app.isDefaultProtocolClient(protocolClient, process.execPath)) { 452 if (!app.isDefaultProtocolClient(protocolClient, process.execPath)) {
453 app.setAsDefaultProtocolClient(protocolClient, process.execPath); 453 app.setAsDefaultProtocolClient(protocolClient, process.execPath);
454 } 454 }
@@ -467,15 +467,15 @@ app.on('ready', () => {
467 arguments: `${extraArgs}--reset-window`, 467 arguments: `${extraArgs}--reset-window`,
468 iconPath, 468 iconPath,
469 iconIndex: 0, 469 iconIndex: 0,
470 title: 'Move Ferdi to Current Display', 470 title: 'Move Ferdium to Current Display',
471 description: 'Restore the position and size of Ferdi', 471 description: 'Restore the position and size of Ferdium',
472 }, 472 },
473 { 473 {
474 program: process.execPath, 474 program: process.execPath,
475 arguments: `${extraArgs}--quit`, 475 arguments: `${extraArgs}--quit`,
476 iconPath, 476 iconPath,
477 iconIndex: 0, 477 iconIndex: 0,
478 title: 'Quit Ferdi', 478 title: 'Quit Ferdium',
479 description: '', 479 description: '',
480 }, 480 },
481 ]); 481 ]);
@@ -657,7 +657,7 @@ app.on('before-quit', event => {
657 selection = dialog.showMessageBoxSync(mainWindow!, { 657 selection = dialog.showMessageBoxSync(mainWindow!, {
658 type: 'question', 658 type: 'question',
659 message: 'Quit', 659 message: 'Quit',
660 detail: 'Do you really want to quit Ferdi?', 660 detail: 'Do you really want to quit Ferdium?',
661 buttons: ['Yes', 'No'], 661 buttons: ['Yes', 'No'],
662 }); 662 });
663 } 663 }