chrome.action.onClicked.addListener(async (tab) => {
  if (!tab.id) {
    return;
  }

  try {
    await chrome.scripting.executeScript({
      target: { tabId: tab.id },
      files: ['injector.js']
    });
  } catch (err) {
    console.debug('Failed to inject One Pass panel:', err);
  }
});
