mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
Hide dock icon, handle errors occurring on mac
This commit is contained in:
@@ -186,6 +186,14 @@ 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();
|
||||
});
|
||||
process.stdout.on('error', (e) => {
|
||||
if (e.code === 'EPIPE') {
|
||||
process.exit(0);
|
||||
}
|
||||
});
|
||||
const proxy = new NativeMessagingProxy();
|
||||
proxy.run();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user