1. 06 Mar, 2017 1 commit
    • Robert Knight's avatar
      Remove sourcemap link from boot script · 4c1bd9fe
      Robert Knight authored
      The replacement of var placeholders with values invalidates the
      sourcemap locations and the sourcemap URL is invalid after the file is
      copied from build/scripts/ to build/. Since the script is tiny the debug
      info is not that valuable so this commit just removes the sourcemap URL
      to avoid browsers complaining that they cannot retrieve it.
      4c1bd9fe
  2. 03 Mar, 2017 1 commit
  3. 02 Mar, 2017 3 commits
  4. 01 Mar, 2017 11 commits
  5. 28 Feb, 2017 5 commits
    • Robert Knight's avatar
      Make boot script load settings from correct config tags (#243) · 68be70df
      Robert Knight authored
      An inconsistency crept in where the annotator code reads settings from
      JSON script tags with a 'js-hypothesis-config' class name but the sidebar app
      reads settings from JSON script tags with a 'js-hypothesis-settings'
      class name. The boot script ended up using 'js-hypothesis-settings'
      which is the default class name specified in `settings.js`.
      
      We should use the same name everywhere, which needs to be
      'js-hypothesis-config' since that is used by the public documentation
      [1].
      
      This commit changes the default class to `js-hypothesis-config` and
      removes the ability to specify alternative class names when calling
      `settings()`.
      
      The extension and service will need to be updated to use the new class
      name.
      
      [1] See docs/config.md
      68be70df
    • Nick Stenning's avatar
      Merge pull request #229 from hypothesis/package-content-server · e743717c
      Nick Stenning authored
      Add an express server which serves the package's contents.
      e743717c
    • Sean Hammond's avatar
      Merge pull request #262 from hypothesis/fix-pdf-quote-anchoring-2 · 5b836627
      Sean Hammond authored
      Fix PDF quote anchoring (Part II)
      5b836627
    • Sean Hammond's avatar
      Support onLogin callbacks from partner sites · 0ca108c0
      Sean Hammond authored
      When the client is embedded in a partner site and a login button in the
      client is clicked, call the JavaScript onLogin function that was
      provided to us by the partner via the window.hypothesisConfig function.
      
      When not embedded in a partner site, just prompt for a first-party login
      as normal.
      
      Note that this means that if the client is embedded in a partner site
      with no onLogin callback in window.hypothesisConfig, then nothing will
      happen when the login button in the client is clicked.
      0ca108c0
    • Sean Hammond's avatar
      Separate bridge events by direction · 473fa634
      Sean Hammond authored
      Separate bridge events sent from sidebar to annotator and from annotator
      to sidebar into two separate sections in the source code. Just to make
      documentation of the events clearer.
      473fa634
  6. 27 Feb, 2017 18 commits
  7. 24 Feb, 2017 1 commit