Add Decoder for Uint8Array
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import { exec, execAsync, Gio, GLib } from "astal";
|
||||
|
||||
export function getDecoded(text: (Uint8Array)): string {
|
||||
const decoder = new TextDecoder('utf-8');
|
||||
return decoder.decode(text);
|
||||
}
|
||||
|
||||
export function getHyprlandInstanceSig(): (string|null) {
|
||||
return GLib.getenv("HYPRLAND_INSTANCE_SIGNATURE");
|
||||
|
||||
Reference in New Issue
Block a user