|
|
@@ -7,8 +7,8 @@ export const addBreakpointListener = (
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
listener: (this: MediaQueryList, ev: MediaQueryListEvent) => any,
|
|
|
): MediaQueryList => {
|
|
|
- // get the value of '--breakpoint-*'
|
|
|
- const breakpointPixel = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue(`--breakpoint-${breakpoint}`), 10);
|
|
|
+ // get the value of '--bs-breakpoint-*'
|
|
|
+ const breakpointPixel = parseInt(window.getComputedStyle(document.documentElement).getPropertyValue(`--bs-breakpoint-${breakpoint}`), 10);
|
|
|
|
|
|
const mediaQueryList = window.matchMedia(`(min-width: ${breakpointPixel}px)`);
|
|
|
|