Skip to content

Commit

Permalink
Merge pull request #21 from penge/fix
Browse files Browse the repository at this point in the history
Fix which tab is replaced by blocked info page
  • Loading branch information
penge authored Apr 21, 2022
2 parents 9a1c42f + 6f2ec92 commit 2d6ae71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo) {
chrome.tabs.remove(tabId);
break;
case SHOW_BLOCKED_INFO_PAGE:
chrome.tabs.update({ url: `${chrome.runtime.getURL("blocked.html")}?url=${url}` });
chrome.tabs.update(tabId, { url: `${chrome.runtime.getURL("blocked.html")}?url=${url}` });
break;
}
});
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Block Site",
"description": "Blocks access to distracting websites to improve your productivity.",
"version": "2.1",
"version": "2.1.1",
"icons": { "128": "icon.png" },
"options_page": "options.html",
"permissions": ["storage", "tabs"],
Expand Down

0 comments on commit 2d6ae71

Please sign in to comment.