mirror of
https://github.com/He4eT/browser-milje-2077.git
synced 2026-05-05 01:17:25 +00:00
13 lines
431 B
JavaScript
13 lines
431 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.storage.local.set({'params': {scaleFactor: 16}})
|
|
console.log('openSettingsButton')
|
|
}
|