INNER CODE UNIT · JavaScript

outputTab

jatinkrmalik/LLMFeeder · extension/background.js:414

      const outputTab = tabs.find(tab => tab.active) || tabs[0];
      if (outputTab) {
        const copyResponse = await browserAPI.tabs.sendMessage(outputTab.id, {
          action: "copyToClipboard",
          text: merged
        });
        if (!copyResponse || !copyResponse.success) {
          return fail("Copy Failed", (copyResponse && copyResponse.error) || "Could not write to the clipboard");
        }
        await showNotificationInTab(notification.title, notification.message);
        return { success: true };
      }
      return fail("Copy Failed", "No active tab found");

    } else if (command === "download_markdown") {
      // Download Merged: Single .md file
      const merged = MultiTabUtils.mergeMarkdownResults(results);
      const filename = `llmfeeder-merged-${MultiTabUtils.getDateString()}.md`;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…