Skip to content

Commit ea9514e

Browse files
committed
fix: disregard any chrome internal pages.
1 parent 4b75c06 commit ea9514e

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

extension/background.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
chrome.action.onClicked.addListener(tab => {
2+
if (!tab.url.includes("chrome://")) {
23
chrome.scripting.executeScript({
34
target: { tabId: tab.id },
45
files: ["bundle.js"],
56
});
6-
});
7-
7+
}
8+
});

extension/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "select-picture-in-picture",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"action": {},
66
"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.",
77
"icons": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "select-picture-in-picture",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"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.",
55
"main": "index.js",
66
"repository": "https://github.com/Xy2002/SelectPiPJS",

0 commit comments

Comments
 (0)