mirror of
https://github.com/He4eT/browser-milje-2077.git
synced 2026-05-05 01:17:25 +00:00
12 lines
372 B
JavaScript
12 lines
372 B
JavaScript
import { browser } from '../../scripts/browser.js'
|
|
|
|
document.getElementById('toggleMiljeButton').onclick = () => {
|
|
browser.tabs.query({active: true, currentWindow: true})
|
|
.then(([tab]) => browser.tabs.sendMessage(tab.id, {
|
|
command: 'toggleMilje',
|
|
}))
|
|
}
|
|
|
|
document.getElementById('openSettingsButton').onclick = () => {
|
|
browser.runtime.openOptionsPage()
|
|
}
|