Skip to content

Commit

Permalink
fix: signing enabled condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kiremitrov123 committed Mar 29, 2023
1 parent 6ea6574 commit 7bbfa96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useContentProtection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const useContentProtection = <T>(
}));
const host = signingConfig?.host;
const drmPolicyId = contentProtection?.drm?.defaultPolicyId ?? signingConfig?.drmPolicyId;
const signingEnabled = !!urlSigning;
const signingEnabled = !!urlSigning || !!host || (!!drmPolicyId && !host);

const { data: token, isLoading } = useQuery(
['token', type, id, params],
Expand Down

0 comments on commit 7bbfa96

Please sign in to comment.