1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

private mode component

This commit is contained in:
Kyle Spearrin
2018-04-13 22:08:24 -04:00
parent 31ddb97530
commit 4308947893
9 changed files with 62 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
import { BrowserApi } from '../browser/browserApi';
import {
ToasterConfig,
ToasterContainerComponent,
@@ -65,6 +67,10 @@ export class AppComponent implements OnInit {
private changeDetectorRef: ChangeDetectorRef, private ngZone: NgZone) { }
ngOnInit() {
if (BrowserApi.getBackgroundPage() == null) {
return;
}
this.ngZone.runOutsideAngular(() => {
window.onmousemove = () => this.recordActivity();
window.onmousedown = () => this.recordActivity();