Files
klz-cables.com/.pnpm-store/v10/files/6d/72e77e2372b9434ab14e7083fd471fc29ca341c32520f538387311dfa2f6fddb64eca616609f7388b12d586e1087bc973b92c6a6d4c3455f88bc51abf4a51d
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

20 lines
586 B
Plaintext

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