// First-run welcome page actions. Inline handlers are blocked by the MV3
// extension CSP, so the buttons are wired here.
document.getElementById("settings").addEventListener("click", (e) => {
  e.preventDefault();
  try {
    chrome.runtime.openOptionsPage();
  } catch (_) {
    window.open(chrome.runtime.getURL("src/options/options.html"), "_blank");
  }
});

document.getElementById("mobile").addEventListener("click", (e) => {
  e.preventDefault();
  window.open(chrome.runtime.getURL("src/popup/mobile.html"), "_blank");
});
