Skip to content

Commit

Permalink
Merge pull request #211 from qgustavor/simplify-handle-force-https
Browse files Browse the repository at this point in the history
Simplify handleForceHttps
  • Loading branch information
qgustavor authored Sep 6, 2024
2 parents 9913351 + cb60c5a commit a086caf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ class API extends EventEmitter {

static handleForceHttps (userOpt) {
if (userOpt != null) return userOpt
if (globalThis.Deno) return false
return process.env.IS_BROWSER_BUILD
return !!(globalThis.isSecureContext)
}

static getShouldAvoidUA () {
Expand Down

0 comments on commit a086caf

Please sign in to comment.