• Robert Knight's avatar
    Fix PDF quote anchoring only testing a single page · 81aa2372
    Robert Knight authored
    The `findInPages` function was supposed to search for a quote looking
    at each of the page indexes in the input array, in order.
    
    However because of the way that `next` was used, this function ended up
    only searching the first page in the list. The `then(attempt, next)`
    code was intended to try the current page and then move to the next in
    the list if no match was found. However the `next` function is not
    called if `attempt` throws in this context.
    
    The `pdfContent` var in the test was renamed to `pdfPages` for clarity.
    81aa2372
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...