electron/docs/fiddles/native-ui/external-links-file-manager/external-links/renderer.js
2023-04-24 10:35:14 -04:00

7 lines
200 B
JavaScript

const { shell } = require('electron')
const exLinksBtn = document.getElementById('open-ex-links')
exLinksBtn.addEventListener('click', (event) => {
shell.openExternal('https://electronjs.org')
})