mirror of
https://github.com/bitwarden/desktop.git
synced 2025-02-01 22:51:40 +01:00
Fix not working on windows
This commit is contained in:
parent
d94f441422
commit
03a52d4d63
11
src/main.ts
11
src/main.ts
@ -184,16 +184,19 @@ export class Main {
|
||||
}
|
||||
}
|
||||
|
||||
console.error(process.argv);
|
||||
if (process.argv.some(arg => arg.indexOf('chrome-extension://') !== -1 || arg.indexOf('{') !== -1)) {
|
||||
app.on('ready', () => {
|
||||
app.dock.hide();
|
||||
});
|
||||
if (process.platform === 'darwin') {
|
||||
app.on('ready', () => {
|
||||
app.dock.hide();
|
||||
});
|
||||
}
|
||||
|
||||
process.stdout.on('error', (e) => {
|
||||
if (e.code === 'EPIPE') {
|
||||
process.exit(0);
|
||||
}
|
||||
});
|
||||
|
||||
const proxy = new NativeMessagingProxy();
|
||||
proxy.run();
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user