From 48e3893076a6ca93223743bee73b713721070eb5 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Wed, 14 Sep 2016 08:10:55 +0100 Subject: Fix omission from 722cd3c40f89d93682f08e88b6d4cb46ca70991e. --- background_scripts/marks.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background_scripts') diff --git a/background_scripts/marks.coffee b/background_scripts/marks.coffee index daf28748..963b8925 100644 --- a/background_scripts/marks.coffee +++ b/background_scripts/marks.coffee @@ -66,7 +66,7 @@ Marks = # If we're not going to be scrolling to a particular position in the tab, then we choose all tabs with a # matching URL prefix. Otherwise, we require an exact match. query = if markInfo.scrollX == markInfo.scrollY == 0 then "#{markInfo.url}*" else markInfo.url - chrome.tabs.query { url: "#{markInfo.url}*" }, (tabs) => + chrome.tabs.query { url: query }, (tabs) => if 0 < tabs.length # We have at least one matching tab. Pick one and go to it. @pickTab tabs, (tab) => -- cgit v1.2.3