Skip to content

Commit

Permalink
Merge pull request #12 from iohansson/master
Browse files Browse the repository at this point in the history
fix multiple VK and ODKL counters on the same page
  • Loading branch information
koddr authored Mar 13, 2018
2 parents f234654 + 3099ec5 commit a1a8043
Show file tree
Hide file tree
Showing 8 changed files with 2,119 additions and 4,761 deletions.
4,689 changes: 1,000 additions & 3,689 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-goodshare",
"version": "0.9.3",
"version": "0.9.4",
"description": "Vue.js component for social share. A simple way to share a link on the pages of your website in the most popular (and not so) social networks.",
"main": "src/VueGoodshare.vue",
"scripts": {
Expand All @@ -13,15 +13,15 @@
"url": "git+https://github.com/koddr/vue-goodshare.git"
},
"dependencies": {
"vue": "^2.5.9"
},
"devDependencies": {
"css-loader": "^0.28.7",
"gitbook-cli": "^2.3.2",
"node-sass": "^4.7.2",
"sass-loader": "^6.0.6",
"vue": "^2.5.9",
"vue-style-loader": "^3.0.3"
},
"devDependencies": {
"gitbook-cli": "^2.3.2"
},
"keywords": [
"social share buttons",
"share buttons",
Expand Down
10 changes: 10 additions & 0 deletions src/helpers/defaultHref.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* default page url prop value
* @return {String} document location href without hash
*/
export default function defaultHref() {
return document.location.href.replace(
document.location.hash,
''
);
}
Loading

0 comments on commit a1a8043

Please sign in to comment.