Midora/extension/help.js
2018-09-16 12:27:42 +02:00

10 lines
340 B
JavaScript

var 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 => { });
})