1
0
mirror of https://github.com/bitwarden/web synced 2025-12-19 09:43:33 +00:00

Added missing lang attribute

This commit is contained in:
gbubemismith
2022-06-01 10:31:47 +01:00
parent ad0512e344
commit 9a30878774
3 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,13 @@
import { Component, NgZone, OnDestroy, OnInit, SecurityContext } from "@angular/core";
import { DOCUMENT } from "@angular/common";
import {
Component,
Inject,
LOCALE_ID,
NgZone,
OnDestroy,
OnInit,
SecurityContext,
} from "@angular/core";
import { DomSanitizer } from "@angular/platform-browser";
import { NavigationEnd, Router } from "@angular/router";
import * as jq from "jquery";
@@ -50,6 +59,8 @@ export class AppComponent implements OnDestroy, OnInit {
private isIdle = false;
constructor(
@Inject(LOCALE_ID) public locale: string,
@Inject(DOCUMENT) private document: Document,
private broadcasterService: BroadcasterService,
private tokenService: TokenService,
private folderService: FolderService,
@@ -78,6 +89,8 @@ export class AppComponent implements OnDestroy, OnInit {
) {}
ngOnInit() {
this.document.documentElement.lang = this.locale;
this.ngZone.runOutsideAngular(() => {
window.onmousemove = () => this.recordActivity();
window.onmousedown = () => this.recordActivity();