this repo has no description
1// Set up cross-browser compatibility
2const storage =
3 typeof browser !== "undefined" ? browser.storage.local : chrome.storage.local
4const management =
5 typeof browser !== "undefined" ? browser.management : chrome.management
6
7document.getElementById("accept").addEventListener("click", function () {
8 storage.set({ privacyConsentAccepted: true })
9 window.close()
10})
11
12document.getElementById("decline").addEventListener("click", function () {
13 management.uninstallSelf({ showConfirmDialog: true })
14})