Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Jul 12, 2024
1 parent 34aea21 commit 85692fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/src/adshield/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const GetResourceToken = async (ScriptUrl: string) => {
const Match = /eyJ[\w-]*\.eyJ[\w-]*\.[\w-]*/.exec(Text)

if (Match === null) {
const ResponseHash = Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256', new TextEncoder().encode('asdf')))).map(Block =>Block.toString(16).padStart(2, '0')).join('')
const ResponseHash = Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256', new TextEncoder().encode(Text)))).map(Block =>Block.toString(16).padStart(2, '0')).join('')
try {
return await GetResourceTokenFromCDN(ResponseHash)
}
Expand Down

0 comments on commit 85692fc

Please sign in to comment.