[object Object]

← back to Corkwallcovering

Remove dead PRODUCTS_ORIG var and unused global niche flag

be6d7cf5e12bb474af34335488a645c23360a6cc · 2026-05-18 20:30:17 -0700 · SteveStudio2

Files touched

Diff

commit be6d7cf5e12bb474af34335488a645c23360a6cc
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date:   Mon May 18 20:30:17 2026 -0700

    Remove dead PRODUCTS_ORIG var and unused global niche flag
---
 public/index.html | 2 +-
 server.js         | 5 +----
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/public/index.html b/public/index.html
index 9165c98..730d527 100644
--- a/public/index.html
+++ b/public/index.html
@@ -357,7 +357,7 @@ textarea:focus-visible,
   
     <div class="footer-col">
       <h4>Social</h4>
-      <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener">Facebook</a>
+      <a class="fb-link" href="https://www.facebook.com/SteveAbramsDesigns.DesignerWallcoverings" target="_blank" rel="noopener noreferrer">Facebook</a>
     </div>
   </div>
   <div class="footer-bottom">
diff --git a/server.js b/server.js
index 3d937c6..6aeac74 100644
--- a/server.js
+++ b/server.js
@@ -48,10 +48,7 @@ function nicheFit(p) {
 const PRODUCTS_NICHE = PRODUCTS.filter(nicheFit);
 const NICHE_DROPPED = PRODUCTS.length - PRODUCTS_NICHE.length;
 console.log(`Niche filter: kept ${PRODUCTS_NICHE.length} of ${PRODUCTS.length}, dropped ${NICHE_DROPPED}`);
-// Replace PRODUCTS reference with the niche-filtered list for all downstream handlers.
-const PRODUCTS_ORIG = PRODUCTS;
-Object.defineProperty(global, '__products_niche_applied', { value: true });
-
+// Downstream handlers read PRODUCTS_NICHE; PRODUCTS is kept only for total counts.
 
 const app = express();
 // Security headers via helmet (added 2026-05-04 overnight YOLO loop)

← 69df5f1 hero-4grid: relocate json from data/ to public/ for Express  ·  back to Corkwallcovering  ·  Remove 28 stale .bak/.pre snapshot files (public/*.bak were ff8c947 →