[object Object]

← back to Ffepurchasing

add gated figma capture loader (only fires on ?figmacapture= URL param)

137bcca25475305d9f77d6c3831754cb050a77f8 · 2026-05-10 00:14:32 -0700 · Steve Abrams

The script never loads for normal visitors — only when the URL contains
'figmacapture=' query string or hash, which is required for the figma MCP
generate_figma_design tool to convert the page to a Figma file.

Files touched

Diff

commit 137bcca25475305d9f77d6c3831754cb050a77f8
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sun May 10 00:14:32 2026 -0700

    add gated figma capture loader (only fires on ?figmacapture= URL param)
    
    The script never loads for normal visitors — only when the URL contains
    'figmacapture=' query string or hash, which is required for the figma MCP
    generate_figma_design tool to convert the page to a Figma file.
---
 public/index.html | 1 +
 1 file changed, 1 insertion(+)

diff --git a/public/index.html b/public/index.html
index e1dfeae..816451d 100644
--- a/public/index.html
+++ b/public/index.html
@@ -175,6 +175,7 @@ textarea:focus-visible,
 <meta name="twitter:description" content="FFE Purchasing — B2B trade portal for hospitality buyers · NET30 · spec sheets · MOQ-aware.">
 <meta name="twitter:image" content="https://ffepurchasing.com/hero-bg.jpg">
 <!-- graphics-loop pass 13: footer + fb -->
+<script>if((location.search+location.hash).indexOf("figmacapture=")>=0){var s=document.createElement("script");s.src="https://mcp.figma.com/mcp/html-to-design/capture.js";s.async=true;document.head.appendChild(s);}</script>
 </head>
 <body>
 <style id="ns-header-modal-styles">

← af3374d brand customization for ffepurchasing  ·  back to Ffepurchasing  ·  snapshot: 5 file(s) changed, +3 new, ~2 modified 24cf536 →