• Nick Stenning's avatar
    Load API URL from a settings object, not a <link> tag · c1d03a03
    Nick Stenning authored
    The approach of embedding a link tag in the app.html doesn't really give
    us a great deal of flexibility. URLs within the application, perhaps as
    a result, tend to be created either from baseURI or from the API URL,
    called `serviceUrl` in the code.
    
    This commit leaves the <base> tag alone, but:
    
    - replaces the serviceUrl <link> tag with a settings object,
      `window.hypothesis.settings` which is inlined into app.html.
    - replaces the serviceUrl angular service with a generic settings
      service.
    - renames serviceUrl to apiUrl, to make its purpose more obvious.
    c1d03a03
Name
Last commit
Last update
..
extension Loading commit data...
images Loading commit data...
scripts Loading commit data...
styles Loading commit data...