Skip to content

Commit

Permalink
update to protocol handler
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Jan 13, 2018
1 parent ac67f3c commit df85b76
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/main.ts
Expand Up @@ -44,6 +44,13 @@ import { WindowManager } from './windowManager';
import * as commandLine from './commandLine'
import * as electronLocalShortcut from 'electron-localshortcut';

// Ensure further options aren't passed to Chromium
Electron.app.setAsDefaultProtocolClient('botemulator', process.execPath, [
'--protocol-launcher',
'--'
]);

// Uncaught exception handler
(process as NodeJS.EventEmitter).on('uncaughtException', (error: Error) => {
console.error(error);
log.error('[err-server]', error.message.toString(), JSON.stringify(error.stack));
Expand Down

0 comments on commit df85b76

Please sign in to comment.