Skip to content

Commit

Permalink
Merge pull request #2843 from getAlby/feat/user-agent
Browse files Browse the repository at this point in the history
feat: addd user_agent in default request options
  • Loading branch information
bumi authored Nov 7, 2023
2 parents 8463370 + 0653348 commit 63a820e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/extension/background-script/connectors/alby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,11 @@ export default class Alby implements Connector {

private _getRequestOptions(): Partial<RequestOptions> {
return {
user_agent: `lightning-browser-extension:${process.env.VERSION}`,
...(process.env.ALBY_API_URL
? { base_url: process.env.ALBY_API_URL }
? {
base_url: process.env.ALBY_API_URL,
}
: {}),
};
}
Expand Down

0 comments on commit 63a820e

Please sign in to comment.