Midora/extension/help.ts
shinigami-eyes e66a79df0c Format code
2019-06-29 19:54:25 +02:00

8 lines
335 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 }, () => { });
})