1
0
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:
Oscar Hinton
2017-12-06 19:51:49 +01:00
committed by Kyle Spearrin
parent 97b509e1f6
commit 81fcfb4f6f
10 changed files with 59 additions and 49 deletions

10
src/background.ts Normal file
View 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();