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,14 +1,15 @@
import BrowserUtilsService from '../services/browserUtils.service';
import CipherService from '../services/cipher.service';
import { PlatformUtilsService } from '../services/abstractions/platformUtils.service';
export default class WebRequestBackground {
private pendingAuthRequests: any[] = [];
private webRequest: any;
private isFirefox: boolean;
constructor(browserUtilsService: BrowserUtilsService, private cipherService: CipherService) {
constructor(private platformUtilsService: PlatformUtilsService, private cipherService: CipherService) {
this.webRequest = (window as any).chrome.webRequest;
this.isFirefox = browserUtilsService.isFirefox();
this.isFirefox = platformUtilsService.isFirefox();
}
async init() {
@@ -24,7 +25,7 @@ export default class WebRequestBackground {
return;
}
const domain = BrowserUtilsService.getDomain(details.url);
const domain = this.platformUtilsService.getDomain(details.url);
if (domain == null) {
if (callback) {
callback();