Skip to content

Commit

Permalink
Fix errors to make ci pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Sperling-0 committed Jan 8, 2025
1 parent 23aa827 commit 5f9d09a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/SubtleDataEncryptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class SubtleDataEncryptor implements DataEncryptor {
}

stringToArrayBuffer( data: string ): ArrayBuffer {
return new TextEncoder().encode( data );
return new TextEncoder().encode( data ).buffer.slice( 0 );
}

arrayBufferToString( buffer: ArrayBuffer ) {
Expand Down

0 comments on commit 5f9d09a

Please sign in to comment.