Files
klz-cables.com/.pnpm-store/v10/files/6d/5b92d8c53175424d4a33614ce4c02306b26c5b91cd1ae44c412c1cc84e9b1b09d3302af13ed96a74536000b511ff98e8339f1812ab52d97214db3ef5ad6dd8
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

22 lines
680 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const node = require('./node.js');
const worldwide = require('./worldwide.js');
/**
* Returns true if we are in the browser.
*/
function isBrowser() {
// eslint-disable-next-line no-restricted-globals
return typeof window !== 'undefined' && (!node.isNodeEnv() || isElectronNodeRenderer());
}
// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them
function isElectronNodeRenderer() {
const process = (worldwide.GLOBAL_OBJ ).process;
return process?.type === 'renderer';
}
exports.isBrowser = isBrowser;
//# sourceMappingURL=isBrowser.js.map