Skip to content

Commit

Permalink
Fix a wechat typo (huacnlee#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranxiang authored and huacnlee committed Oct 24, 2016
1 parent cd2f523 commit a0c702f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ You need add require css,js file in your app assets files:

```
#= require social-share-button
#= require social_share_button/wechat # if you need use WeChat
#= require social-share-button/wechat # if you need use WeChat
```

`app/assets/stylesheets/application.scss`
Expand Down
1 change: 1 addition & 0 deletions app/assets/javascripts/social-share-button.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ window.SocialShareButton =
window.SocialShareWeChatButton.qrcode
header: $(el).attr('title')
footer: $(el).data('wechat-footer')
url: $parent.data("url")

when "tumblr"
get_tumblr_extra = (param) ->
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/social-share-button/wechat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ window.SocialShareWeChatButton =
$wBody.qrcode
width: 200
height: 200
text: location.href
text: opts.url

$wContainer = $("#ss-wechat-dialog")
top = ($(window).height() - $wContainer.height()) / 2
Expand Down

0 comments on commit a0c702f

Please sign in to comment.