Convert message/title to strings in render process
This commit is contained in:
parent
a00d36fb07
commit
c90fd4dc88
1 changed files with 2 additions and 2 deletions
|
@ -121,11 +121,11 @@ module.exports = (ipcRenderer, guestInstanceId, openerId, hiddenPage) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.alert = function (message, title) {
|
window.alert = function (message, title) {
|
||||||
ipcRenderer.sendSync('ELECTRON_BROWSER_WINDOW_ALERT', message, title)
|
ipcRenderer.sendSync('ELECTRON_BROWSER_WINDOW_ALERT', `${message}`, `${title}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
window.confirm = function (message, title) {
|
window.confirm = function (message, title) {
|
||||||
return ipcRenderer.sendSync('ELECTRON_BROWSER_WINDOW_CONFIRM', message, title)
|
return ipcRenderer.sendSync('ELECTRON_BROWSER_WINDOW_CONFIRM', `${message}`, `${title}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// But we do not support prompt().
|
// But we do not support prompt().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue