diff options
| author | mrmr1993 | 2017-02-08 17:53:47 +0000 |
|---|---|---|
| committer | mrmr1993 | 2017-02-08 20:27:48 +0000 |
| commit | e053530dc82cdf202c67483d9148d006daab7979 (patch) | |
| tree | 2cef5cb6345660afe3711c97a16611fca14548f1 /background_scripts/marks.coffee | |
| parent | bebedfa4e7abc45fc72ce961d28b6ee44f84b895 (diff) | |
| download | vimium-e053530dc82cdf202c67483d9148d006daab7979.tar.bz2 | |
Stop using deprecated key 'selected' of tabs; switch to 'active'
The documentation suggests that 'highlighted' is equivalent to
'selected'. However, multiple tabs can be highlighted in a window -- in
fact, everywhere 'selected' was used, we wanted the unique active tab.
Diffstat (limited to 'background_scripts/marks.coffee')
| -rw-r--r-- | background_scripts/marks.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/marks.coffee b/background_scripts/marks.coffee index dbc14671..33c467a7 100644 --- a/background_scripts/marks.coffee +++ b/background_scripts/marks.coffee @@ -57,7 +57,7 @@ Marks = # Focus an existing tab and scroll to the given position within it. gotoPositionInTab: ({ tabId, scrollX, scrollY, markName }) -> - chrome.tabs.update tabId, {selected: true}, -> + chrome.tabs.update tabId, { active: true }, -> chrome.tabs.sendMessage tabId, {name: "setScrollPosition", scrollX, scrollY} # The tab we're trying to find no longer exists. We either find another tab with a matching URL and use it, |
