mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
some styling cleanup
This commit is contained in:
@@ -8,9 +8,11 @@ export function randomBytes(size) {
|
||||
.map((b) => b.toString(16).padStart(2, "0"))
|
||||
.join("");
|
||||
}
|
||||
|
||||
if (encoding === "base64") {
|
||||
return btoa(String.fromCharCode(...this));
|
||||
}
|
||||
|
||||
return new TextDecoder().decode(this);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user