fixed karma failure
This commit is contained in:
parent
d86cbe6941
commit
b8770ba98b
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ export const isSticky = (el, scrollY, stickyTop) => {
|
|||
};
|
||||
|
||||
export default (el) => {
|
||||
if (!el) return;
|
||||
|
||||
const computedStyle = window.getComputedStyle(el);
|
||||
|
||||
if (!/sticky/.test(computedStyle.position)) return;
|
||||
|
|
Loading…
Reference in a new issue