BigW Consortium Gitlab

fixed karma failure

parent d86cbe69
...@@ -9,6 +9,8 @@ export const isSticky = (el, scrollY, stickyTop) => { ...@@ -9,6 +9,8 @@ export const isSticky = (el, scrollY, stickyTop) => {
}; };
export default (el) => { export default (el) => {
if (!el) return;
const computedStyle = window.getComputedStyle(el); const computedStyle = window.getComputedStyle(el);
if (!/sticky/.test(computedStyle.position)) return; if (!/sticky/.test(computedStyle.position)) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment