Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Mar 30, 2019
1 parent 00c3468 commit d53be66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vtils",
"version": "0.80.0",
"version": "0.80.1",
"description": "一些常用的 JavaScript 工具库。",
"main": "lib/vtils.cjs.js",
"module": "lib/vtils.es.js",
Expand Down
4 changes: 3 additions & 1 deletion src/Wechat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ export class Wechat {
private prevShareParams: WechatUpdateShareDataParams = {}

constructor(params?: WechatConfigParams) {
this.config(params)
if (params) {
this.config(params)
}
}

config(params: WechatConfigParams) {
Expand Down

0 comments on commit d53be66

Please sign in to comment.