Skip to content

Commit a4d19ba

Browse files
committed
Fix feedback errors.
Signed-off-by: Katharine Berry <[email protected]>
1 parent 104c816 commit a4d19ba

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/src/pkjs/lib/feedback.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,12 @@ function sendRequest(request, url, callback) {
8282
req.setRequestHeader('Content-Type', 'application/json');
8383
req.onload = function(e) {
8484
if (req.readyState === 4) {
85-
var response = {};
8685
if (req.status === 200) {
8786
callback(true, req.status);
8887
console.log("Feedback sent successfully");
89-
if (responseKey) {
90-
response[responseKey] = 0;
91-
}
9288
} else {
9389
console.log("Feedback request returned error code " + req.status.toString());
9490
callback(false, req.status);
95-
if (responseKey) {
96-
response[responseKey] = 1;
97-
}
98-
}
99-
if (responseKey) {
100-
Pebble.sendAppMessage(response);
10191
}
10292
}
10393
}

0 commit comments

Comments
 (0)