{
  "manifest_version": 3,
  "name": "QR Code Generator",
  "version": "1.0",
  "description": "Generate a QR code from the current URL.",
  "permissions": [
    "activeTab",
    "contextMenus",
    "scripting"
  ],
  "icons": {
    "16": "icons/icon16.png",
    "32": "icons/icon32.png",
    "48": "icons/icon48.png",
    "128": "icons/icon128.png"
  },
  "content_scripts": [
    {
      "matches": ["<all_urls>"],
      "js": ["detect_ean_from_selection.js"]
    }
  ],
  "background": {
    "service_worker": "service_worker.js"
  },
  "action": {
    "default_popup": "popup-menu/popup.html"
  },
  "content_security_policy": {
    "script-src": ["'self'"]
  },
  "web_accessible_resources": [{
    "resources": [
      "pages/qr-page/qr.html", 
      "pages/qr-page/qr.js",
      "pages/barcode-page/barcode.html",
      "pages/barcode-page/barcode.js",
      "libraries/qrcode.min.js", 
      "JsBarcode.all.min.js",
      "icons/icon16.png",
      "icons/icon32.png",
      "icons/icon48.png",
      "icons/icon128.png",
      "pages/page_styling.css",
      "service_worker.js",
      "detect_ean_from_selection.js",
      "manifest.json"
    ],
    "matches": ["<all_urls>"]
  }]
}