Skip to content

Commit

Permalink
fix: disregard any chrome internal pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xy2002 committed Aug 31, 2022
1 parent 4b75c06 commit ea9514e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions extension/background.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
chrome.action.onClicked.addListener(tab => {
if (!tab.url.includes("chrome://")) {
chrome.scripting.executeScript({
target: { tabId: tab.id },
files: ["bundle.js"],
});
});
}
});
2 changes: 1 addition & 1 deletion extension/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "select-picture-in-picture",
"version": "1.0.1",
"version": "1.0.2",
"action": {},
"description": "Press and hold the key and then move the cursor to select the video on the page to open the picture-in-picture function.",
"icons": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "select-picture-in-picture",
"version": "1.0.1",
"version": "1.0.2",
"description": "Press and hold the key and then move the cursor to select the video on the page to open the picture-in-picture function.",
"main": "index.js",
"repository": "https://github.com/Xy2002/SelectPiPJS",
Expand Down

0 comments on commit ea9514e

Please sign in to comment.