Hi,
Made a search engine, added to FireFox ad default= WORKS!
Now, support for /suggest, it is kind of working, FF calls it, result returned, but FF do not render andy suggestion for USER, have tried 100 things. Belows is smallest possible sample. It is called, it answers, FF do not render suggestions…
NODE.JS EXPRESS HARDCODED SAMPLE
app.get(‘/suggest’, (req, res) => {
const q = String(req.query.q || ‘’).trim();
// No-cache while debugging
res.set(‘Cache-Control’, ‘no-store, no-cache, must-revalidate’);
const pool = [‘volvocars.com’,‘volkswagen.de’,‘volc-dns.com’,‘volcgtm.com’];
const out = q
? pool.filter(s => s.toLowerCase().includes(q.toLowerCase())).slice(0, 10)
: ;
// Let Express set application/json; Firefox explicitly supports this
res.json([q, out, , ]);
});
// the boxes here are [ followed by] rendered wrong as -
