Adopt DI in browser services

This commit is contained in:
Daniel Imms
2019-07-13 22:26:13 -07:00
parent 5cc8ad802c
commit 88c88f1141
8 changed files with 55 additions and 23 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ import { IOptionsService } from 'common/services/Services';
import { ISoundService } from 'browser/services/Services';
export class SoundService implements ISoundService {
_serviceBrand: any;
private static _audioContext: AudioContext;
static get audioContext(): AudioContext | null {
@@ -22,7 +24,7 @@ export class SoundService implements ISoundService {
}
constructor(
private _optionsService: IOptionsService
@IOptionsService private _optionsService: IOptionsService
) {
}