[object Object]

← back to Wallpapercanada

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

03dbc9d58abcc68a1a61cdf09bb450430f9c727e · 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 03dbc9d58abcc68a1a61cdf09bb450430f9c727e
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 b07ccad..5dbc6db 100644
--- a/public/index.html
+++ b/public/index.html
@@ -173,6 +173,7 @@ textarea:focus-visible,
 <meta name="twitter:description" content="Wallpaper Canada — premium wallcoverings, Canadian shipping, CAD pricing.">
 <meta name="twitter:image" content="https://wallpapercanada.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">

← 7a79c5d brand customization for wallpapercanada  ·  back to Wallpapercanada  ·  sort-skill canonical: add light-dark/dark-light/wheel + help a45c0e8 →