Skip to content

Commit

Permalink
Add check for new brave_enable_cdm_host_verification config option
Browse files Browse the repository at this point in the history
If set to `true` via .npmrc, Widevine Host Verification will be enabled for the build
This functionality also requires brave/brave-core#515

Fixes #1310
  • Loading branch information
bsclifton committed Sep 27, 2018
1 parent 5d90028 commit 0a880e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const Config = function () {
this.channel = ''
this.sccache = getNPMConfig(['sccache'])
this.braveReferralsApiKey = getNPMConfig(['brave_referrals_api_key']) || ''
this.braveEnableCdmHostVerification = JSON.parse(getNPMConfig(['brave_enable_cdm_host_verification']) || false)
}

Config.prototype.buildArgs = function () {
Expand Down Expand Up @@ -82,6 +83,7 @@ Config.prototype.buildArgs = function () {
chrome_version_string: this.chromeVersion,
safebrowsing_api_endpoint: this.safeBrowsingApiEndpoint,
brave_referrals_api_key: this.braveReferralsApiKey,
brave_enable_cdm_host_verification: this.braveEnableCdmHostVerification
}

if (process.platform === 'darwin') {
Expand Down

0 comments on commit 0a880e7

Please sign in to comment.