Skip to content

Commit

Permalink
fix(signing): prevent signing when DRM is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed May 27, 2022
1 parent 8d81808 commit 0d70e99
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 @@ -17,7 +17,7 @@ const useContentProtection = <T>(
const host = signingConfig?.host;
const drmPolicyId = signingConfig?.drmPolicyId;
const drmEnabled = !!drmPolicyId;
const signingEnabled = !!host;
const signingEnabled = !!host && drmEnabled;

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

0 comments on commit 0d70e99

Please sign in to comment.