true if the browser is Chromium-based (Chrome, Edge, or Opera), false otherwise
if (isChromiumBased()) {
// Browser supports Web Serial API
const client = createSerialClient();
} else {
console.error('Please use a Chromium-based browser (Chrome, Edge, or Opera)');
}
Check if the browser is Chromium-based.
Determines if the current browser is based on Chromium, which includes Chrome, Edge, and Opera. These browsers support the Web Serial API.