Skip to content

Commit

Permalink
fix: config again
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerCodeMonkey committed Feb 8, 2019
1 parent 1526e89 commit 3f85bb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ngx-quill",
"license": "MIT",
"version": "4.6.5",
"version": "4.6.6",
"author": {
"name": "Bengt Weiße"
},
Expand Down
4 changes: 2 additions & 2 deletions src/quill.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export const defaultModules = {
]
})
export class QuillModule {
static forRoot(config?: QuillConfig): ModuleWithProviders {
static forRoot(config: QuillConfig = {}): ModuleWithProviders {
return {
ngModule: QuillModule,
providers: [
{
provide: QUILL_CONFIG_TOKEN,
useValue: Object.assign({}, {
modules: defaultModules
}, {...config})
}, config)
}
]
}
Expand Down

0 comments on commit 3f85bb7

Please sign in to comment.