| Index: remoting/webapp/app_remoting/js/feedback_consent.js
|
| diff --git a/remoting/webapp/app_remoting/js/feedback_consent.js b/remoting/webapp/app_remoting/js/feedback_consent.js
|
| index f79237630c190d6e669de31ffa27090eca7046ad..1437d057c1a8b7ecd0898c58ca79edb7dfcc1427 100644
|
| --- a/remoting/webapp/app_remoting/js/feedback_consent.js
|
| +++ b/remoting/webapp/app_remoting/js/feedback_consent.js
|
| @@ -127,21 +127,19 @@ function onToken(token) {
|
| '/applications/' + remoting.settings.getAppRemotingApplicationId() +
|
| '/hosts/' + hostId +
|
| '/reportIssue';
|
| - /** @param {XMLHttpRequest} xhr */
|
| - var onDone = function(xhr) {
|
| - if (xhr.status >= 200 && xhr.status < 300) {
|
| + var onDone = function(/** !remoting.Xhr.Response */ response) {
|
| + if (response.status >= 200 && response.status < 300) {
|
| getUserInfo();
|
| } else {
|
| showError();
|
| }
|
| };
|
| - remoting.xhr.start({
|
| + new remoting.Xhr({
|
| method: 'POST',
|
| url: uri,
|
| - onDone: onDone,
|
| jsonContent: body,
|
| oauthToken: token
|
| - });
|
| + }).start().then(onDone);
|
| } else {
|
| getUserInfo();
|
| }
|
|
|