Skip to content
Snippets Groups Projects
Commit 3340d10c authored by Greg Fodor's avatar Greg Fodor
Browse files

Don't send full URL

parent bf26f284
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ export default class XferChannel {
const channel = this.socket.channel(`xfer:${code}`, { timeout: 10000 });
const cancel = () => channel.leave();
channel.on("expired", () => finished("expired"));
channel.on("xfer_expired", () => finished("expired"));
channel.on("presence_state", state => {
if (Object.keys(state).length > 0) {
......@@ -43,12 +43,9 @@ export default class XferChannel {
channel.on("xfer_request", () => {
if (readyToSend) {
const payload = {
location: [location.protocol, "//", location.host, location.pathname].join("")
};
const payload = { path: location.pathname };
// Copy profile data to xfer'ed device, and apply it on the other side
// if hasChangedName is false.
// Copy profile data to xfer'ed device if it's been set.
if (this.store.state.activity.hasChangedName) {
payload.profile = { ...this.store.state.profile };
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment