-
Notifications
You must be signed in to change notification settings - Fork 0
/
back.ts
51 lines (42 loc) · 1.2 KB
/
back.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import "lib/shims/axiosFetchAdapter";
import "lib/shims/bignumberLimit";
import { setupArgon2Impl } from "lib/kdbx/argon";
import { initProfiles } from "lib/ext/profile";
import { openIfWasRestarted } from "lib/ext/utils";
import { setupFixtures } from "core/repo";
import {
startInpageContentScript,
startWalletServer,
startPageServer,
startBruteForceProtection,
startInstallOrUpdateListener,
startApproveWindowOpener,
startPersistingApprovals,
startTxObserver,
startExtBadge,
startAutoLocker,
startRampTxObserver,
startAutoNetworkChanger,
} from "core/back/services";
setupArgon2Impl();
startInpageContentScript();
// Init profiles
// - Create default profile if it doesn't exist
// - Open new tab when profile changed (after refresh)
initProfiles();
openIfWasRestarted();
// Merge default data to the device storage
setupFixtures();
// Start background server
// It starts Porter server to communicate with UI & content scripts
startWalletServer();
startPageServer();
startApproveWindowOpener();
startPersistingApprovals();
startTxObserver();
startRampTxObserver();
startExtBadge();
startInstallOrUpdateListener();
startAutoLocker();
startBruteForceProtection();
startAutoNetworkChanger();