mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-28 09:51:06 -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 browserWin = electron.BrowserWindow.fromWebContents(webContents);
|
||||||
const buttonId = electron.dialog.showMessageBox(browserWin, {
|
const buttonId = electron.dialog.showMessageBox(browserWin, {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
buttons: [ 'Allow', 'Deny', 'Ignore All' ],
|
buttons: [
|
||||||
|
i18n.t('Allow')(),
|
||||||
|
i18n.t('Deny')(),
|
||||||
|
i18n.t('Ignore All')(),
|
||||||
|
],
|
||||||
defaultId: 1,
|
defaultId: 1,
|
||||||
cancelId: 1,
|
cancelId: 1,
|
||||||
noLink: true,
|
noLink: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user