• Robert Knight's avatar
    Refactor integration creation · 1ed89913
    Robert Knight authored
    Move the logic for determining which document type/viewer integration to
    create out of the annotator entry point and Guest and into a
    `createIntegration` factory method in annotator/integrations/index.js
    
    This reduces the number of places that need to change when we add new
    integrations, and puts the logic for determining whether a particular
    integration can be used in the current environment alongside the
    corresponding implementation.
    1ed89913
guest.js 19.6 KB