Skip to content

Commit

Permalink
removed unused permission and removed checks via webnavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh committed Sep 4, 2024
1 parent f65386a commit 1bc8f71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"manifest_version": 3,
"version": "1.0",
"version": "1.1",
"name": "ghcss-extension",
"description": "A simple extension that allows users to view custom css on GitHub profiles.",
"author": "Bims-sh",
"permissions": [
"webNavigation",
"tabs",
"activeTab"
],
Expand Down
6 changes: 0 additions & 6 deletions src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
});
}

// Listen for history state changes (SPA navigation)
chrome.webNavigation.onHistoryStateUpdated.addListener((details: chrome.webNavigation.WebNavigationTransitionCallbackDetails) => {
console.log("History state updated");
handleCssInjection(details.tabId);
}, { url: [{ urlMatches: 'github.com' }] });

// Listen for tab updates (page load or refresh)
chrome.tabs.onUpdated.addListener((tabId: number, changeInfo: chrome.tabs.TabChangeInfo) => {
if (changeInfo.status === 'complete') {
Expand Down

0 comments on commit 1bc8f71

Please sign in to comment.