forked from agracio/electron-edge-js-quick-start
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrenderer.js
More file actions
18 lines (16 loc) · 758 Bytes
/
renderer.js
File metadata and controls
18 lines (16 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const setButton = document.getElementById('btn')
const toInput = document.getElementById('toInput')
const subjectInput = document.getElementById('subjectInput')
const bodyInput = document.getElementById('bodyInput')
const ccEmailInput = document.getElementById('ccEmailInput')
const bccEmailInput = document.getElementById('bccEmailInput')
const attachmentInput = document.getElementById('attachmentInput')
setButton.addEventListener('click', () => {
const toEmail = toInput.value
const body = bodyInput.value
const subject = subjectInput.value
const ccEmail = ccEmailInput.value
const bccEmail = bccEmailInput.value
const attachment = attachmentInput.value
window.api.createOutlook({toEmail, body, subject, ccEmail, bccEmail, attachment})
})