Skip to content

Commit

Permalink
Fix errors with todoist-toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
davelosert committed Sep 24, 2023
1 parent cd49476 commit 5831fe1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/toggleTodoist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import { yabai } from '../lib/yabai';

const allWindows = await yabai.queryAllWindows();
const todoistWindow = await yabai.findApp('Todoist', allWindows);

if(!todoistWindow) {
throw new Error('Todoist window not found');
}

const focusedWindow = await yabai.findFocusedWindow(allWindows);

const allDisplays = await yabai.queryAllDisplays();
Expand Down

0 comments on commit 5831fe1

Please sign in to comment.