Skip to content

Commit

Permalink
Fix default url and title
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiesEater committed Mar 13, 2018
1 parent e907fdb commit 2a04c51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cookieseater/vue-yandex-share",
"version": "0.1.1",
"version": "0.1.2",
"description": "Vue component for Yandex Share service",
"main": "dist/vue-yandex-share.js",
"module": "dist/vue-yandex-share.es.js",
Expand Down
8 changes: 4 additions & 4 deletions src/YandexShare.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export default {
},
url: {
type: String,
default: window.location.href,
default: '',
},
title: {
type: String,
default: document.title,
default: '',
},
description: {
type: String,
Expand Down Expand Up @@ -70,8 +70,8 @@ export default {
Script.attach().then(() => {
window.Ya.share2(this.$el, {
content: {
url: this.url,
title: this.title,
url: this.url || window.location.href,
title: this.title || document.title,
description: this.description,
image: this.image,
},
Expand Down

0 comments on commit 2a04c51

Please sign in to comment.