Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31968 from michielbdejong/1202627-dbPrefix
Browse files Browse the repository at this point in the history
Bug 1202627 - Use xClientState as Kinto.js dbPrefix, r=ferjm
  • Loading branch information
ferjm committed Sep 22, 2015
2 parents 8380b4e + 9e7b361 commit 33f3aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/sync/js/sync-engine/syncengine.js
Expand Up @@ -179,6 +179,7 @@ uld be a Function`);
_createKinto: function(kintoCredentials) {
var kinto = new Kinto({
bucket: 'syncto',
dbPrefix: kintoCredentials.xClientState,
remote: kintoCredentials.URL,
headers: {
'Authorization': 'BrowserID ' + kintoCredentials.assertion,
Expand Down
1 change: 1 addition & 0 deletions apps/sync/test/unit/sync-engine/syncengine_test.js
Expand Up @@ -37,6 +37,7 @@ suite('SyncEngine', () => {
expect(se._controlCollections).to.be.an('object');
expect(se._fswc).to.be.instanceOf(FxSyncWebCrypto);
expect(se._kinto).to.be.instanceOf(Kinto);
expect(se._kinto.options.dbPrefix).to.equal(options.xClientState);
expect(se._adapters).to.deep.equal(options.adapters);
expect(se._ready).to.equal(false);
done();
Expand Down

0 comments on commit 33f3aea

Please sign in to comment.