Commit 01b386c1 authored by nanahira's avatar nanahira

fix typo

parent 97206220
...@@ -72,7 +72,7 @@ export class BasePicSourcePlugin extends PicSource { ...@@ -72,7 +72,7 @@ export class BasePicSourcePlugin extends PicSource {
@Apply() @Apply()
initializeSource() { initializeSource() {
this.http = this.ctx.http.extend(this.config.httpConfig || {}); this.http = this.ctx.http.extend(this.config.http || {});
this.config.applyTo(this); this.config.applyTo(this);
this.pics.addSource(this); this.pics.addSource(this);
} }
...@@ -97,7 +97,7 @@ export function PlainPicSourcePlugin<C>(dict: { ...@@ -97,7 +97,7 @@ export function PlainPicSourcePlugin<C>(dict: {
constructor(ctx: Context, config: PartialDeep<C & PicSourceConfig>) { constructor(ctx: Context, config: PartialDeep<C & PicSourceConfig>) {
super(ctx); super(ctx);
this.config = config as PicSourceConfig & C; this.config = config as PicSourceConfig & C;
this.http = this.ctx.http.extend(this.config.httpConfig || {}); this.http = this.ctx.http.extend(this.config.http || {});
this.applyConfig(config); this.applyConfig(config);
ctx.pics.addSource(this); ctx.pics.addSource(this);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment