Midora/extension/help.ts
2019-06-29 15:41:37 +02:00

8 lines
336 B
TypeScript

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