Skip to content

Commit

Permalink
Using a clearer check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalrymple committed Oct 11, 2023
1 parent fb12b8e commit a247d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rest/src/Requester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function defaultOptionsHandler(
resourceOptions.rejectUnauthorized != null &&
resourceOptions.rejectUnauthorized === false
) {
if (typeof window !== 'object') {
if (typeof window === 'undefined') {
const { Agent } = await import('https');

options.agent = new Agent({
Expand Down

0 comments on commit a247d1f

Please sign in to comment.