Skip to content

Commit

Permalink
feat(server): allow newline in .api.key
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Oct 19, 2016
1 parent 52d88f2 commit 714f3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {settings} from '../../config/settings';

let apiKey = '';
try {
apiKey = require('raw!../../.api.key');
apiKey = require('raw!../../.api.key').replace(/^\s+|\s+$/g, '');
} catch (e) {
}

Expand Down

0 comments on commit 714f3b7

Please sign in to comment.