mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 03:26:42 +00:00
chore(hammerspoon/app_toggle): minor lint warning fix
This commit is contained in:
@@ -131,7 +131,12 @@ function obj:toggle(apps)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if mostRecentApp == hs.application.frontmostApplication() then
|
if not mostRecentApp then
|
||||||
|
mostRecentApp = runningApps[1]
|
||||||
|
end
|
||||||
|
|
||||||
|
local frontMostApp = hs.application.frontmostApplication()
|
||||||
|
if frontMostApp and mostRecentApp == frontMostApp then
|
||||||
return mostRecentApp:hide()
|
return mostRecentApp:hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user