1
0
mirror of https://github.com/rhysd/Mstdn.git synced 2025-01-21 20:52:11 +01:00

set chromium_sandbox to true by default

This commit is contained in:
rhysd 2017-04-20 12:11:10 +09:00
parent 26911d441a
commit 7746e26338
2 changed files with 6 additions and 3 deletions

View File

@ -102,6 +102,9 @@ export default function loadConfig(): Promise<Config> {
recommendConfigAndDie(CONFIG_FILE);
} else {
config.__DATA_DIR = DATA_DIR;
if (config.chromium_sandbox === undefined) {
config.chromium_sandbox = true;
}
resolve(config);
}
} catch (e) {

View File

@ -10,8 +10,8 @@ app.removeAllListeners();
const appReady = new Promise<void>(resolve => app.once('ready', resolve));
process.on('unhandledRejection', (reason: string) => {
const msg = 'FATAL: Unhandled rejection! Reason: ' + reason
appReady.then(() => {
const msg = 'FATAL: Unhandled rejection! Reason: ' + reason;
appReady.then(() =>
dialog.showMessageBox({
type: 'error',
buttons: ['OK'],
@ -19,7 +19,7 @@ process.on('unhandledRejection', (reason: string) => {
}, () => {
app.quit();
})
});
);
log.error(msg);
});