Add Decoder for Uint8Array

This commit is contained in:
Mephisto
2025-06-16 19:35:10 +03:00
committed by GitHub
parent 9aea545084
commit 0f3b7d3ed4
+4
View File
@@ -1,5 +1,9 @@
import { exec, execAsync, Gio, GLib } from "astal"; 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) { export function getHyprlandInstanceSig(): (string|null) {
return GLib.getenv("HYPRLAND_INSTANCE_SIGNATURE"); return GLib.getenv("HYPRLAND_INSTANCE_SIGNATURE");