Commit b2e86aaf authored by Robert Knight's avatar Robert Knight

Whitelist and document 'appType' parameter

parent 0d95508e
......@@ -17,6 +17,10 @@ function hostPageConfig(window) {
// Direct-linked annotation ID
'annotations',
// Config param added by the extension, Via etc. indicating how Hypothesis
// was added to the page.
'appType',
// Config params documented at
// https://github.com/hypothesis/client/blob/master/docs/config.md
'openLoginForm',
......
......@@ -14,6 +14,7 @@ describe('hostPageConfig', function () {
it('parses config from location string and returns whitelisted params', function () {
var window_ = fakeWindow({
annotations: '1234',
appType: 'bookmarklet',
openSidebar: true,
openLoginForm: true,
showHighlights: true,
......@@ -21,6 +22,7 @@ describe('hostPageConfig', function () {
assert.deepEqual(hostPageConfig(window_), {
annotations: '1234',
appType: 'bookmarklet',
openSidebar: true,
openLoginForm: true,
showHighlights: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment