mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
chore: prettier.... TWO!
This commit is contained in:
parent
3436d85888
commit
0d4ee9ee96
5 changed files with 18 additions and 18 deletions
|
@ -272,14 +272,14 @@ export function rewriteSrcset(srcset: string, meta: URLMeta) {
|
|||
|
||||
function base64ToBytes(base64) {
|
||||
const binString = atob(base64);
|
||||
|
||||
return Uint8Array.from(binString, (m) => m.codePointAt(0));
|
||||
|
||||
return Uint8Array.from(binString, (m) => m.codePointAt(0));
|
||||
}
|
||||
|
||||
function bytesToBase64(bytes: Uint8Array) {
|
||||
const binString = Array.from(bytes, (byte) =>
|
||||
String.fromCodePoint(byte)
|
||||
).join("");
|
||||
|
||||
return btoa(binString);
|
||||
|
||||
return btoa(binString);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue