Skip to content

Commit

Permalink
Fix universal launcher check
Browse files Browse the repository at this point in the history
  • Loading branch information
dzirtusss committed Jan 22, 2025
1 parent 5e6aa25 commit e999aeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ local function isEditableControlInFocus()
end

local function isSafariWindowActive()
return hs.window.focusedWindow():application():name() == "Safari"
local win = hs.window.focusedWindow()
if not win then return false end

return win:application():name() == "Safari"
end

-- TODO: do some better logic here
Expand Down

0 comments on commit e999aeb

Please sign in to comment.