1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

switch to jslib auth service

This commit is contained in:
Kyle Spearrin
2018-02-01 22:53:36 -05:00
parent f382f125be
commit 146254b646
9 changed files with 47 additions and 153 deletions

View File

@@ -152,6 +152,14 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
return BrowserApi.getApplicationVersion();
}
supportsU2f(win: Window): boolean {
if (win != null && (win as any).u2f !== 'undefined') {
return true;
}
return this.isChrome() || this.isOpera();
}
private sidebarViewName(): string {
if ((window as any).chrome.sidebarAction && this.isFirefox()) {
return 'sidebar';