Skip to content

Commit

Permalink
fix lambda in angular metadata is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
alQlagin committed Jan 28, 2020
1 parent 435dfae commit 6e365f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions projects/ngx-pwa-install/src/lib/ngx-pwa-install.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ import { CommonModule } from '@angular/common';
import { NgxPwaInstallComponent } from './ngx-pwa-install.component';
import { BeforeInstallPrompt } from './ngx-pwa-install.providers';

export const beforeInstallPromptInitializerFactory = (beforeInstallPrompt) => {
return async () => beforeInstallPrompt;
};

@NgModule({
declarations: [NgxPwaInstallComponent],
imports: [
Expand All @@ -16,6 +12,10 @@ export const beforeInstallPromptInitializerFactory = (beforeInstallPrompt) => {
})
export class NgxPwaInstallModule {
static forRoot(): ModuleWithProviders<NgxPwaInstallModule> {
const beforeInstallPromptInitializerFactory = beforeInstallPrompt => {
return () => Promise.resolve(beforeInstallPrompt);
};

return {
ngModule: NgxPwaInstallModule,
providers: [
Expand Down

0 comments on commit 6e365f4

Please sign in to comment.