Commit b93d503c authored by Hannah Stepanek's avatar Hannah Stepanek

Add group to sidebar whitelist

parent 426e4201
......@@ -17,6 +17,9 @@ function hostPageConfig(window) {
// Direct-linked annotation ID
'annotations',
// Direct-linked group ID
'group',
// Default query passed by url
'query',
......
......@@ -14,6 +14,7 @@ describe('hostPageConfig', function() {
it('parses config from location string and returns whitelisted params', function() {
const window_ = fakeWindow({
annotations: '1234',
group: 'abc12',
appType: 'bookmarklet',
openSidebar: true,
requestConfigFromFrame: 'https://embedder.com',
......@@ -27,6 +28,7 @@ describe('hostPageConfig', function() {
assert.deepEqual(hostPageConfig(window_), {
annotations: '1234',
group: 'abc12',
appType: 'bookmarklet',
openSidebar: true,
requestConfigFromFrame: 'https://embedder.com',
......
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