diff --git a/ignite b/ignite index 038fc77..53b38a2 100755 --- a/ignite +++ b/ignite @@ -11,7 +11,10 @@ function get_firefox_window { [ .[] | select ( (.in_current_workspace == true) and - (.wm_class | startswith("firefox") or endswith("firefox") ) + ( + (if .wm_class == null then "" else .wm_class end) | + startswith("firefox") or endswith("firefox") + ) ) ] | first | .id' }