• Eduardo Sanz García's avatar
    Move `frame-util` functions to other files · fb7acdbf
    Eduardo Sanz García authored
    Moved `frame-util` functionality to `frame-observer.js` and
    `hypothesis-injector.js`:
    
    - `isAccessible`, `findFrames` and `isDocumentReady` functions to
      `frame-observer.js`, and
    
    - `hasHypothesis` and `injectHypothesis` functions to
      `hypothesis-injector.js`
    
    Renamed and move `src/annotator/util/test/frame-util-test.js` to
    `src/annotator/test/frame-observer-test.js`. This unit test only
    exercise the `findFrames` function.
    fb7acdbf
hypothesis-injector.js 3.36 KB