Skip to content

Commit

Permalink
Wait longer before switching back to Slack
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jul 29, 2022
1 parent 54f1b1c commit 34084bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "slackoff"
version = "0.2.2"
version = "0.2.3"
description = "Automatically sign out of Slack workspaces on macOS."

license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions slackoff/slack.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ on signin(workspace)
tell application "Google Chrome" to activate
tell application "Google Chrome"
tell active tab of front window
delay 1
execute javascript "document.evaluate('//div[text()=\"" & workspace & "\"]', document).iterateNext().click();"
delay 1
execute javascript "document.querySelectorAll('[data-qa=\"ssb_multi_select_open_workspaces\"]')[0].click();"
Expand All @@ -44,5 +45,6 @@ on signout(workspace)
tell application "Google Chrome"
close every tab of window 1 whose title is equal to closeTab
end tell
delay 3
tell application "Slack" to activate
end signout

0 comments on commit 34084bf

Please sign in to comment.