mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-09 09:38:07 +08:00
fix(win32): Ignore path in argv when --squirrel flag is present
This commit is contained in:
parent
29b448989c
commit
a8f54c25df
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
/* eslint dot-notation: 0 */
|
||||
/* eslint global-require: 0 */
|
||||
global.shellStartTime = Date.now();
|
||||
|
||||
const app = require('electron').app;
|
||||
|
@ -81,7 +82,7 @@ const parseCommandLine = (argv) => {
|
|||
const pathsToOpen = [];
|
||||
|
||||
// On Windows and Linux, mailto and file opens are passed as the last argv
|
||||
if (argv.length > 1) {
|
||||
if (argv.length > 1 && !argv.join(' ').includes('--squirrel')) {
|
||||
const lastArg = argv[argv.length - 1];
|
||||
if (lastArg.startsWith('mailto:')) {
|
||||
urlsToOpen.push(lastArg);
|
||||
|
|
Loading…
Reference in a new issue