Skip to content

Commit

Permalink
Changing chrome.getTab to query
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasupathi-Rajamanickam committed Mar 12, 2022
1 parent 389dae9 commit b0afafd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions devtools/devtools.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ function setupActions() {
}

function startOverride() {
chrome.tabs.getSelected(null, (tab) => {
setupDebugger(tab);
});
let queryOptions = { active: true, currentWindow: true };
chrome.tabs.query(queryOptions, (tab) => {
setupDebugger(tab[0]);
});
}
function pinTab(panelWindow) {
extPanelWindow = panelWindow;
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "Chrome Response Override",
"short_name": "Chrome Response Override",
"version": "1.6",
"version": "1.7",
"description": "Provides support to override API/HTML/* response using simple Find & Replace steps. No external app installation required",
"author": "Pasupathi Rajamanickam",
"devtools_page": "devtools/devtools.html",
"permissions": [
"debugger",
"tabs",
"storage",
"activeTab",
"http://*/*",
"https://*/*"
],
Expand Down

0 comments on commit b0afafd

Please sign in to comment.