fixed karma failure

This commit is contained in:
Phil Hughes 2017-07-31 11:23:19 +01:00
parent d86cbe6941
commit b8770ba98b
No known key found for this signature in database
GPG key ID: DB8CE4B3A3EE91AB

View file

@ -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;