@cookieseater/vue-yandex-share
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -113,7 +113,7 @@ function _classCallCheck(instance, Constructor) { | ||
type: String, | ||
default: window.location.href | ||
default: '' | ||
}, | ||
title: { | ||
type: String, | ||
default: document.title | ||
default: '' | ||
}, | ||
@@ -173,4 +173,4 @@ description: { | ||
content: { | ||
url: _this.url, | ||
title: _this.title, | ||
url: _this.url || window.location.href, | ||
title: _this.title || document.title, | ||
description: _this.description, | ||
@@ -177,0 +177,0 @@ image: _this.image |
@@ -119,7 +119,7 @@ (function (global, factory) { | ||
type: String, | ||
default: window.location.href | ||
default: '' | ||
}, | ||
title: { | ||
type: String, | ||
default: document.title | ||
default: '' | ||
}, | ||
@@ -179,4 +179,4 @@ description: { | ||
content: { | ||
url: _this.url, | ||
title: _this.title, | ||
url: _this.url || window.location.href, | ||
title: _this.title || document.title, | ||
description: _this.description, | ||
@@ -183,0 +183,0 @@ image: _this.image |
{ | ||
"name": "@cookieseater/vue-yandex-share", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Vue component for Yandex Share service", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-yandex-share.js", |
@@ -16,7 +16,7 @@ import Script from './Script'; | ||
type: String, | ||
default: window.location.href, | ||
default: '', | ||
}, | ||
title: { | ||
type: String, | ||
default: document.title, | ||
default: '', | ||
}, | ||
@@ -74,4 +74,4 @@ description: { | ||
content: { | ||
url: this.url, | ||
title: this.title, | ||
url: this.url || window.location.href, | ||
title: this.title || document.title, | ||
description: this.description, | ||
@@ -78,0 +78,0 @@ image: this.image, |
20544