move container service to jslib

This commit is contained in:
Kyle Spearrin 2018-01-09 22:28:21 -05:00
parent f20c217321
commit 893c41d7cf
2 changed files with 1 additions and 25 deletions

View File

@ -4,6 +4,7 @@ import {
ApiService,
AppIdService,
ConstantsService,
ContainerService,
CryptoService,
EnvironmentService,
PasswordGenerationService,
@ -44,7 +45,6 @@ import BrowserPlatformUtilsService from '../services/browserPlatformUtils.servic
import BrowserStorageService from '../services/browserStorage.service';
import CipherService from '../services/cipher.service';
import CollectionService from '../services/collection.service';
import ContainerService from '../services/container.service';
import FolderService from '../services/folder.service';
import i18nService from '../services/i18n.service';
import LockService from '../services/lock.service';

View File

@ -1,24 +0,0 @@
import {
CryptoService,
PlatformUtilsService,
} from 'jslib/abstractions';
export default class ContainerService {
constructor(private cryptoService: CryptoService,
private platformUtilsService: PlatformUtilsService) {
}
attachToWindow(win: any) {
if (!win.BitwardenContainerService) {
win.BitwardenContainerService = this;
}
}
getCryptoService(): CryptoService {
return this.cryptoService;
}
getPlatformUtilsService(): PlatformUtilsService {
return this.platformUtilsService;
}
}