Midora/extension/help.ts
2019-06-29 15:16:27 +02:00

10 lines
350 B
TypeScript

var browser : Browser = browser || chrome;
document.getElementById('cancelButton').addEventListener('click', () => {
browser.runtime.sendMessage({ acceptClicked: false }, response => { });
})
document.getElementById('acceptButton').addEventListener('click', () => {
browser.runtime.sendMessage({ acceptClicked: true }, response => { });
})