• Eduardo Sanz García's avatar
    Remove two steps process for `FrameObserver` · bbe76799
    Eduardo Sanz García authored
    Previously, after `FrameObserver` was constructed it required
    `.observe(callback1, callback2)` method to be executed to start the
    observation.
    
    With this change the callbacks are provided in the constructor and the
    observation starts immediately.
    bbe76799
frame-observer.js 2.3 KB