Skip to content

Commit

Permalink
ie9 doesn't support location.origin
Browse files Browse the repository at this point in the history
  • Loading branch information
petty committed Sep 23, 2014
1 parent 817bd55 commit 56f70fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bsp-share.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
'_defaultOptions': {
"service" : "",
"title" : document.title !== undefined ? encodeURIComponent(document.title) : "",
"url" : window.location.origin + window.location.pathname,
"redirectUrl" : window.location.origin + window.location.pathname,
"url" : window.location.protocol + "//" + window.location.hostname + window.location.pathname,
"redirectUrl" : window.location.protocol + "//" + window.location.hostname + window.location.pathname,
"description" : $("meta[property='og:description']").attr('content') !== undefined ? encodeURIComponent($( "meta[property='og:description']").attr('content')) : "",
"caption" : $("meta[property='og:caption']").attr('content') !== undefined ? encodeURIComponent($( "meta[property='og:caption']").attr('content')) : "",
"image" : $("meta[property='og:image']").attr('content') !== undefined ? encodeURIComponent($( "meta[property='og:image']").attr('content')) : "",
Expand Down

0 comments on commit 56f70fc

Please sign in to comment.