mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
Typescript - Add translation for certificate error dialog buttons
This commit is contained in:
parent
a318eac564
commit
6038c429ae
@ -63,7 +63,11 @@ electron.app.on('certificate-error', (event, webContents, url, error, _certifica
|
||||
const browserWin = electron.BrowserWindow.fromWebContents(webContents);
|
||||
const buttonId = electron.dialog.showMessageBox(browserWin, {
|
||||
type: 'warning',
|
||||
buttons: [ 'Allow', 'Deny', 'Ignore All' ],
|
||||
buttons: [
|
||||
i18n.t('Allow')(),
|
||||
i18n.t('Deny')(),
|
||||
i18n.t('Ignore All')(),
|
||||
],
|
||||
defaultId: 1,
|
||||
cancelId: 1,
|
||||
noLink: true,
|
||||
|
Loading…
Reference in New Issue
Block a user