Files
klz-cables.com/.pnpm-store/v10/files/60/7f45cb2fd9845ee08a6ab61dd637af2e87ab3a5a2d83918016324515b2c6e9184b5677fb91dbd8e0e01dac306e91b4fbdb85d5a20122245d73addb56057b35
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

27 lines
977 B
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const types = require('../../../types.js');
/**
* web-vitals 5.1.0 switched listeners to be added on the window rather than the document.
* Instead of having to check for window/document every time we add a listener, we can use this function.
*/
function addPageListener(type, listener, options) {
if (types.WINDOW.document) {
types.WINDOW.addEventListener(type, listener, options);
}
}
/**
* web-vitals 5.1.0 switched listeners to be removed from the window rather than the document.
* Instead of having to check for window/document every time we remove a listener, we can use this function.
*/
function removePageListener(type, listener, options) {
if (types.WINDOW.document) {
types.WINDOW.removeEventListener(type, listener, options);
}
}
exports.addPageListener = addPageListener;
exports.removePageListener = removePageListener;
//# sourceMappingURL=globalListeners.js.map