Skip to content

Commit

Permalink
fix(post): always grab URL from top most window
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBuchholz committed Apr 5, 2024
1 parent 757a2b7 commit 3e947a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inject/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
reject(xhr.statusText)
})
xhr.open('POST', base + '/_/' + url)
xhr.setRequestHeader('x-page-url', location)
xhr.setRequestHeader('x-page-url', top.location)
xhr.send(stringify(data))
})
}
Expand Down

0 comments on commit 3e947a3

Please sign in to comment.