Commit b9c9aeda authored by Einar Löve's avatar Einar Löve Committed by Ville Immonen
Browse files

Fix chrome tab reuse (#1035)

* Correctly checks site url to tab url in reuse check

* Bring chrome to foreground focused after tab reuse
parent 4a7f78ed
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
...@@ -23,7 +23,7 @@ on run argv ...@@ -23,7 +23,7 @@ on run argv
set theTabIndex to 0 set theTabIndex to 0
repeat with theTab in every tab of theWindow repeat with theTab in every tab of theWindow
set theTabIndex to theTabIndex + 1 set theTabIndex to theTabIndex + 1
if theTab's URL is theURL then if theTab's URL as string contains theURL then
set found to true set found to true
exit repeat exit repeat
end if end if
...@@ -38,6 +38,7 @@ on run argv ...@@ -38,6 +38,7 @@ on run argv
tell theTab to reload tell theTab to reload
set index of theWindow to 1 set index of theWindow to 1
set theWindow's active tab index to theTabIndex set theWindow's active tab index to theTabIndex
tell theWindow to activate
else else
tell window 1 tell window 1
activate activate
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment