Skip to content

Commit

Permalink
Clarify function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihildt committed Apr 22, 2024
1 parent 2c64c80 commit 6b2f3c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/background/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { addExtListeners } from '@/helpers/extensions';
import { addExtensionsListeners } from '@/helpers/extensions';
import { initBrowserAction } from '@/helpers/browserAction';
import { initProxyRequests } from '@/helpers/socksProxy';

Expand All @@ -9,7 +9,7 @@ if (import.meta.hot) {
}

// Add listeners on extension actions
addExtListeners();
addExtensionsListeners();

// Update browserAction for tabs and add listeners
initBrowserAction();
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { updateRecommendation } = useRecommendations();

type ExtensionInfo = browser.management.ExtensionInfo;

export const addExtListeners = () => {
export const addExtensionsListeners = () => {
management.onInstalled.addListener(onInstall);
management.onUninstalled.addListener(onUninstall);
management.onEnabled.addListener(onEnable);
Expand Down

0 comments on commit 6b2f3c6

Please sign in to comment.