-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: convert initData to a string (#147)
This is to help get around the change in data type of initData between the legacy API and the standards API. In the legacy API, the initData was a Uint8Array but needed to be converted to a Uint16Array to be able to toString it. In the standards API, initData is an ArrayBuffer but can be converted to a Uint8Array to be able to toString it. We now do this string conversion for you so that you can just use the contentId and not need to figure out whether legacy or standard API is used. BREAKING CHANGE: getContentId will now receive a string representation of the initData
- Loading branch information
Showing
4 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters