Skip to content

Commit

Permalink
Fixed #570 <Number>T doesn't work well if there are multiple windows
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed Jan 31, 2024
1 parent f821819 commit 1b36523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ function start(browser) {
}
};
self.focusTabByIndex = function(message, sender, sendResponse) {
var queryInfo = message.queryInfo || {};
var queryInfo = message.queryInfo || {currentWindow: true};
chrome.tabs.query(queryInfo, function(tabs) {
if (message.repeats > 0 && message.repeats <= tabs.length) {
chrome.tabs.update(tabs[message.repeats - 1].id, {
Expand Down

0 comments on commit 1b36523

Please sign in to comment.