Skip to content

Commit

Permalink
Merge pull request #474 from abdullahceylan/fix/http-client-issue
Browse files Browse the repository at this point in the history
Fix for Dependency Injection Issue in DataFactory
  • Loading branch information
4gray authored Nov 28, 2024
2 parents 442cd4f + 032f91a commit 04cd200
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ function isTauri() {
/**
* Conditionally imports the necessary service based on the current environment
*/
export function DataFactory(http: HttpClient) {
export function DataFactory(
ngxIndexedDBService: NgxIndexedDBService,
http: HttpClient
) {
if (isElectron()) {
return new ElectronService();
}
Expand Down
6 changes: 6 additions & 0 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import 'jest-extended';

declare module 'video.js' {
export interface VideoJsPlayer {
hlsQualitySelector(options?: any): void;
}
}

0 comments on commit 04cd200

Please sign in to comment.