Skip to content

Commit

Permalink
fix: Automatically apply UX version 2 to all requests
Browse files Browse the repository at this point in the history
Looks like the backend is still expecting it in some cases
  • Loading branch information
nathanbuchar committed Oct 16, 2018
1 parent 176cfb8 commit 8542a37
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/embedded.js
Expand Up @@ -348,6 +348,17 @@ class HelloSign extends Emitter {
}
}

/**
* Appends the "ux_version" parameter to the iFrame
* params object.
*
* @param {URLSearchParams} params
* @private
*/
_applyUxVersion(params) {
params.append('ux_version', '2');
}

/**
* Appends the "js_version" parameter to the iFrame params
* object.
Expand Down Expand Up @@ -378,6 +389,7 @@ class HelloSign extends Emitter {
this._applyRedirectTo(params);
this._applyRequestingEmail(params);
this._applySkipDomainVerification(params);
this._applyUxVersion(params);
this._applyVersion(params);
this._applyWhiteLabeling(params);

Expand Down

0 comments on commit 8542a37

Please sign in to comment.