Skip to content

Commit 1bc8f71

Browse files
committed
removed unused permission and removed checks via webnavigation
1 parent f65386a commit 1bc8f71

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"manifest_version": 3,
3-
"version": "1.0",
3+
"version": "1.1",
44
"name": "ghcss-extension",
55
"description": "A simple extension that allows users to view custom css on GitHub profiles.",
66
"author": "Bims-sh",
77
"permissions": [
8-
"webNavigation",
98
"tabs",
109
"activeTab"
1110
],

src/background.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
});
55
}
66

7-
// Listen for history state changes (SPA navigation)
8-
chrome.webNavigation.onHistoryStateUpdated.addListener((details: chrome.webNavigation.WebNavigationTransitionCallbackDetails) => {
9-
console.log("History state updated");
10-
handleCssInjection(details.tabId);
11-
}, { url: [{ urlMatches: 'github.com' }] });
12-
137
// Listen for tab updates (page load or refresh)
148
chrome.tabs.onUpdated.addListener((tabId: number, changeInfo: chrome.tabs.TabChangeInfo) => {
159
if (changeInfo.status === 'complete') {

0 commit comments

Comments
 (0)