mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-25 00:11:52 +08:00
style: lint and fmt code
This commit is contained in:
@@ -16,11 +16,11 @@ export function downloadContent(content: Blob, fileName: string, fileExtension:
|
||||
|
||||
export function base64ToBytes(base64String: string) {
|
||||
const byteCharacters = atob(base64String);
|
||||
const byteNumbers = new Array(byteCharacters.length);
|
||||
const bytes = new Uint8Array(byteCharacters.length);
|
||||
for (let i = 0; i < byteCharacters.length; i++) {
|
||||
byteNumbers[i] = byteCharacters.charCodeAt(i);
|
||||
bytes[i] = byteCharacters.charCodeAt(i);
|
||||
}
|
||||
return new Uint8Array(byteNumbers);
|
||||
return bytes;
|
||||
}
|
||||
|
||||
export function downloadBytes(base64String: string, className?: string, jarName?: string) {
|
||||
|
||||
Reference in New Issue
Block a user