// Onboarding consent settings — external file (MV3 forbids inline scripts).
const K = { toolbar: true, visitStream: true, onboarded: false };
chrome.storage.local.get(K, c => {
  document.getElementById("toolbar").checked = c.toolbar;
  document.getElementById("visitStream").checked = c.visitStream;
});
document.getElementById("save").onclick = () => {
  const v = {
    toolbar: document.getElementById("toolbar").checked,
    visitStream: document.getElementById("visitStream").checked,
    onboarded: true
  };
  chrome.storage.local.set(v, () => { document.getElementById("msg").textContent = "Saved."; });
};
