Skip to content

Commit a18ec25

Browse files
committed
Fix demo deployment
1 parent 6b2550f commit a18ec25

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/src/markdown.module.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,12 @@ const sharedDeclarations = [
4040
})
4141
export class MarkdownModule {
4242
static forRoot(markdownModuleConfig?: MarkdownModuleConfig): ModuleWithProviders {
43-
44-
const loaderProvider = markdownModuleConfig && markdownModuleConfig.loader || [];
45-
const markedOptionsProvider = markdownModuleConfig && markdownModuleConfig.markedOptions || initialMarkedOptions;
46-
4743
return {
4844
ngModule: MarkdownModule,
4945
providers: [
5046
MarkdownService,
51-
loaderProvider,
52-
markedOptionsProvider,
47+
markdownModuleConfig && markdownModuleConfig.loader || [],
48+
markdownModuleConfig && markdownModuleConfig.markedOptions || initialMarkedOptions,
5349
],
5450
};
5551
}

0 commit comments

Comments
 (0)