mirror of https://github.com/electron/electron
9 lines
326 B
JavaScript
9 lines
326 B
JavaScript
// This file is required by the index.html file and will
|
|
// be executed in the renderer process for that window.
|
|
// All APIs exposed by the context bridge are available here.
|
|
|
|
// Binds the buttons to the context bridge API.
|
|
document.getElementById('open-in-browser').addEventListener('click', () => {
|
|
window.shell.open()
|
|
})
|