mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
[TypeScript] Convert background entry script to TypeScript (#419)
* Convert background entry file to typescript. Remove global forge & tldjs variables. * Minor cleanup.
This commit is contained in:
committed by
Kyle Spearrin
parent
97b509e1f6
commit
81fcfb4f6f
10
src/background.ts
Normal file
10
src/background.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import MainBackground from './background/main.background';
|
||||
|
||||
// tslint:disable-next-line:variable-name
|
||||
const bg_isBackground = (window as any).bg_isBackground = true;
|
||||
|
||||
// tslint:disable-next-line:variable-name
|
||||
const bg_main = (window as any).bg_main = new MainBackground();
|
||||
// tslint:disable-next-line:no-var-requires
|
||||
require('./scripts/analytics.js');
|
||||
bg_main.bootstrap();
|
||||
Reference in New Issue
Block a user