Skip to content

Commit

Permalink
Remove base64 encoding
Browse files Browse the repository at this point in the history
btoa doesn't seem to work in Node, and there was no real reason behind encoding the projectKey...
  • Loading branch information
ovidiuch committed Oct 30, 2017
1 parent 117295b commit 7c7383f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -71,7 +71,7 @@ describe('playground files', () => {
const outputPath = path.join(mockOutputPath, 'index.html');
const optsStr = JSON.stringify({
loaderUri: './loader/index.html',
projectKey: btoa(mockRootPath)
projectKey: mockRootPath
});

expect(fs.readFileSync(outputPath, 'utf8')).toBe(
Expand Down
Expand Up @@ -102,7 +102,7 @@ it('serves index.html on / route with playgrounds opts included', () => {
'__PLAYGROUND_OPTS__',
JSON.stringify({
loaderUri: './loader/index.html',
projectKey: btoa(mockRootPath)
projectKey: mockRootPath
})
)
);
Expand Down
Expand Up @@ -14,7 +14,7 @@ export default function getPlaygroundHtml(cosmosConfig: Config) {
);
const opts = JSON.stringify({
loaderUri: './loader/index.html',
projectKey: btoa(rootPath)
projectKey: rootPath
});

return html.replace('__PLAYGROUND_OPTS__', opts);
Expand Down

0 comments on commit 7c7383f

Please sign in to comment.