← back to Re Flyer Aggregator
flyers: one-time localStorage migration so existing 90d-default viewers auto-reset to All-time on reload (TK-10708)
cca0120c49c518826f22995a32cb7f60984b3b72 · 2026-08-19 22:21:10 -0700 · Steve Abrams
Files touched
M public/flyers/index.htmlM scripts/build-flyers-site.mjs
Diff
commit cca0120c49c518826f22995a32cb7f60984b3b72
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed Aug 19 22:21:10 2026 -0700
flyers: one-time localStorage migration so existing 90d-default viewers auto-reset to All-time on reload (TK-10708)
---
public/flyers/index.html | 1 +
scripts/build-flyers-site.mjs | 1 +
2 files changed, 2 insertions(+)
diff --git a/public/flyers/index.html b/public/flyers/index.html
index a6a3c23..e92f8b6 100644
--- a/public/flyers/index.html
+++ b/public/flyers/index.html
@@ -64,6 +64,7 @@ fetch('flyers.json').then(r=>r.json()).then(j=>{DEALS=j;
fmk.innerHTML='<option value="">All</option>'+markets().map(m=>'<option>'+m+'</option>').join('');
if(localStorage.flyType)ftype.value=localStorage.flyType;
if(localStorage.flyMk)fmk.value=localStorage.flyMk;
+ if(localStorage.flyRecencyV!=='2'){delete localStorage.flyRecency;localStorage.flyRecencyV='2';} // one-time reset: old 90d default -> All time
sort.value=localStorage.flySort||'date'; // default: Newest first (freshest deals on top)
recency.value=localStorage.flyRecency||'0'; // default: All time (so full inventory shows, not just the ~47 fresh)
if(localStorage.flyDens)document.getElementById('dens').value=localStorage.flyDens;
diff --git a/scripts/build-flyers-site.mjs b/scripts/build-flyers-site.mjs
index f20fc99..30f3644 100644
--- a/scripts/build-flyers-site.mjs
+++ b/scripts/build-flyers-site.mjs
@@ -115,6 +115,7 @@ fetch('flyers.json').then(r=>r.json()).then(j=>{DEALS=j;
fmk.innerHTML='<option value="">All</option>'+markets().map(m=>'<option>'+m+'</option>').join('');
if(localStorage.flyType)ftype.value=localStorage.flyType;
if(localStorage.flyMk)fmk.value=localStorage.flyMk;
+ if(localStorage.flyRecencyV!=='2'){delete localStorage.flyRecency;localStorage.flyRecencyV='2';} // one-time reset: old 90d default -> All time
sort.value=localStorage.flySort||'date'; // default: Newest first (freshest deals on top)
recency.value=localStorage.flyRecency||'0'; // default: All time (so full inventory shows, not just the ~47 fresh)
if(localStorage.flyDens)document.getElementById('dens').value=localStorage.flyDens;
← f2b08f4 flyers viewer: default to All-time (was 90d) so full ~2650 i
·
back to Re Flyer Aggregator
·
news: +33 feeds (18 major-broker press scrapes + metro biz-j dcc7ff8 →