cleanup: Replace non-standard ByteArray module
gjs landed support for TextDecoder/TextEncoder. Use those instead of gjs' own ByteArray module. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1946>
This commit is contained in:

committed by
Marge Bot

parent
b21b43e318
commit
ef70364e81
@ -24,7 +24,7 @@ function loadInterfaceXML(iface) {
|
||||
|
||||
try {
|
||||
let [ok_, bytes] = f.load_contents(null);
|
||||
return imports.byteArray.toString(bytes);
|
||||
return new TextDecoder().decode(bytes);
|
||||
} catch (e) {
|
||||
log('Failed to load D-Bus interface %s'.format(iface));
|
||||
}
|
||||
|
Reference in New Issue
Block a user