Skip to content

Commit

Permalink
Update subprocess.js
Browse files Browse the repository at this point in the history
  • Loading branch information
corecoding authored Feb 19, 2024
1 parent 64d7dd3 commit 24c8efd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpers/subprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import Gio from 'gi://Gio';

// convert Uint8Array into a literal string
function convertUint8ArrayToString(contents) {
// Starting with Gnome 41, we use TextDecoder as ByteArray is deprecated
var Decoder = new TextDecoder('utf-8');
return Decoder.decode(contents).trim();
const decoder = new TextDecoder('utf-8');
return decoder.decode(contents).trim();
}

export function SubProcess(command) {
Expand Down

0 comments on commit 24c8efd

Please sign in to comment.