Skip to content

Commit 9747aa4

Browse files
neomax7daisyfaithauma
authored andcommitted
fixed: deprecated, not recommended function (#19441)
replaced deprecated function : "unescape" => "decodeURIComponent" as per the MDN recommendation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
1 parent 6728076 commit 9747aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/stream/manage-video-library/using-webhooks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func main() {
247247

248248
const getUtf8Bytes = str =>
249249
new Uint8Array(
250-
[...unescape(encodeURIComponent(str))].map(c => c.charCodeAt(0))
250+
[...decodeURIComponent(encodeURIComponent(str))].map(c => c.charCodeAt(0))
251251
);
252252

253253
const keyBytes = getUtf8Bytes(key);

0 commit comments

Comments
 (0)