Permalink
Browse files

Replaced win.location with doc.location.href

  • Loading branch information...
1 parent c2ae78f commit 177cfe3c21c8a77a4529a3a88894528fda1595d6 @barnabywalters committed Dec 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/common/content_script.js
@@ -144,7 +144,7 @@ var IndieWebReplyModule = (function () {
var properties = parseQueryStringFragment(src);
var newButton = createReplacementButton('Post to your Indieweb Site', function () {
openNoteUI('post', {
- url: (properties.url ? properties.url : window.location),
+ url: (properties.url ? properties.url : document.location.href),
username: '@' + properties.via,
hashtags: properties.hashtags,
text: properties.text
@@ -160,7 +160,7 @@ var IndieWebReplyModule = (function () {
var url = $(e).attr('href');
var properties = {
- url: (url ? url : window.location)
+ url: (url ? url : document.location.href)
};
var newButton = createReplacementButton('Post to your Indieweb Site', function () { openNoteUI('favourite', properties); });

0 comments on commit 177cfe3

Please sign in to comment.