Midora/extension/help.ts

8 lines
425 B
TypeScript
Raw Normal View History

2019-06-29 19:54:25 +02:00
var browser: Browser = browser || chrome;
2018-09-16 12:27:42 +02:00
document.getElementById('cancelButton').addEventListener('click', () => {
2019-07-17 23:35:00 +02:00
browser.runtime.sendMessage(<ShinigamiEyesCommand>{ acceptClicked: false, closeCallingTab: true }, () => { });
2018-09-16 12:27:42 +02:00
})
document.getElementById('acceptButton').addEventListener('click', () => {
2019-07-17 23:35:00 +02:00
browser.runtime.sendMessage(<ShinigamiEyesCommand>{ acceptClicked: true, closeCallingTab: true }, () => { });
2018-09-16 12:27:42 +02:00
})