Skip to content

Commit

Permalink
馃挰 Add message to explain Chrome warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
younesaassila committed May 26, 2023
1 parent 7ab9307 commit 5bb5ad5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/background/background.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import browser from "webextension-polyfill";
import isChrome from "../common/ts/isChrome";
import onApiHeadersReceived from "./handlers/onApiHeadersReceived";
import onBeforeManifestRequest from "./handlers/onBeforeManifestRequest";
import onBeforeSendApiHeaders from "./handlers/onBeforeSendApiHeaders";
import onInstalledResetUpdateFlag from "./handlers/onInstalledResetUpdateFlag";
import onStartupStoreCleanup from "./handlers/onStartupStoreCleanup";
import onStartupUpdateCheck from "./handlers/onStartupUpdateCheck";

if (isChrome) {
// Chrome shows two warnings when loading the extension:
// 1. Unrecognized manifest key 'browser_specific_settings'.
// 2. Manifest version 2 is deprecated.
console.warn(
"猬嗭笍 THE TWO WARNINGS ABOVE ARE EXPECTED 猬嗭笍 No need to report them."
);
}

// Cleanup the session-related data in the store on startup.
browser.runtime.onStartup.addListener(onStartupStoreCleanup);

Expand Down

0 comments on commit 5bb5ad5

Please sign in to comment.