mirror of
https://github.com/strapi/strapi.git
synced 2025-07-21 16:10:18 +00:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
![]() |
'use strict';
|
||
|
|
||
|
class IntersectionObserverMock {
|
||
|
constructor() {
|
||
|
this.root = null;
|
||
|
this.rootMargin = '';
|
||
|
this.thresholds = [];
|
||
|
this.disconnect = () => null;
|
||
|
this.observe = () => null;
|
||
|
this.takeRecords = () => [];
|
||
|
this.unobserve = () => null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
global.IntersectionObserver = IntersectionObserverMock;
|