mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-04 05:08:06 +02:00
43d428b3df
* Work on background service worker. * Work on shortcuts * Work on supporting service worker * Put new background behind version check * Fix build * Use new storage service * create commands from crypto service (#2995) * Work on service worker autofill * Got basic autofill working * Final touches * Work on tests * Revert some changes * Add modifications * Remove unused ciphers for now * Cleanup * Address PR feedback * Update lock file * Update noop service * Add chrome type * Handle "/" in branch names Updates web workflow to handle the `/` in branch names when it's a PR. * Remove any Co-authored-by: Jake Fink <jfink@bitwarden.com> Co-authored-by: Micaiah Martin <77340197+mimartin12@users.noreply.github.com>
14 lines
442 B
TypeScript
14 lines
442 B
TypeScript
import MainBackground from "./background/main.background";
|
|
import { onCommandListener } from "./listeners/onCommandListener";
|
|
|
|
const manifest = chrome.runtime.getManifest();
|
|
|
|
if (manifest.manifest_version === 3) {
|
|
chrome.commands.onCommand.addListener(onCommandListener);
|
|
} else {
|
|
const bitwardenMain = ((window as any).bitwardenMain = new MainBackground());
|
|
bitwardenMain.bootstrap().then(() => {
|
|
// Finished bootstrapping
|
|
});
|
|
}
|