Skip to content

Commit

Permalink
Strip 00000 in Yabai.getWindows before json parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Tinland committed Jan 19, 2024
1 parent c95fd63 commit e4d764a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yabai.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function getSpaces() {

export async function getWindows() {
const json = await Uebersicht.run(`${yabaiPath} -m query --windows`);
const cleanedJson = json.replace(/\.|\\n/g, "");
const cleanedJson = json.replace(/\.|\\n/g, "").replace(/00000/g, "0");
return Utils.parseJson(cleanedJson);
}

Expand Down

0 comments on commit e4d764a

Please sign in to comment.