2019-10-16 15:17:50 +00:00
|
|
|
const screenshot = document.getElementById('screen-shot')
|
|
|
|
const screenshotMsg = document.getElementById('screenshot-path')
|
|
|
|
|
2020-09-14 17:36:54 +00:00
|
|
|
screenshot.addEventListener('click', async (event) => {
|
2019-10-16 15:17:50 +00:00
|
|
|
screenshotMsg.textContent = 'Gathering screens...'
|
2023-08-29 19:52:16 +00:00
|
|
|
screenshotMsg.textContent = await window.electronAPI.takeScreenshot()
|
2019-10-16 15:17:50 +00:00
|
|
|
})
|