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:
parent
26911d441a
commit
7746e26338
@ -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) {
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user