1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

rename browser utils to platform utils

This commit is contained in:
Kyle Spearrin
2018-01-05 16:30:15 -05:00
parent 01cf48bbed
commit 4a08bf6b71
39 changed files with 147 additions and 137 deletions

View File

@@ -1,11 +1,11 @@
import * as template from './pop-out.component.html';
import { BrowserUtilsService } from '../../../services/abstractions/browserUtils.service';
import { PlatformUtilsService } from '../../../services/abstractions/platformUtils.service';
export class PopOutController implements ng.IController {
i18n: any;
constructor(private $analytics: any, private $window: any, private browserUtilsService: BrowserUtilsService,
constructor(private $analytics: any, private $window: any, private platformUtilsService: PlatformUtilsService,
private i18nService: any) {
this.i18n = i18nService;
}
@@ -14,7 +14,7 @@ export class PopOutController implements ng.IController {
this.$analytics.eventTrack('Expand Vault');
let href = this.$window.location.href;
if (this.browserUtilsService.isEdge()) {
if (this.platformUtilsService.isEdge()) {
const popupIndex = href.indexOf('/popup/');
if (popupIndex > -1) {
href = href.substring(popupIndex);
@@ -39,7 +39,7 @@ export class PopOutController implements ng.IController {
height: bodyRect.height,
});
if (this.browserUtilsService.inPopup(this.$window)) {
if (this.platformUtilsService.inPopup(this.$window)) {
this.$window.close();
}
} else {