|
|
|
@ -81,7 +81,11 @@ function trackOpenAsync( {to, resolve, reject}) {
|
|
|
|
|
context.info.push({label: "Status", value: resp.info.statustext});
|
|
|
|
|
}
|
|
|
|
|
if (resp.info.carrier) {
|
|
|
|
|
context.info.push({label: "Carrier", value: resp.info.carrier});
|
|
|
|
|
if (resp.info.carrier_logo) {
|
|
|
|
|
context.info.push({label: "Carrier", value: "<img style=\"height: 2em; padding: 0.667em; max-width: 80%;\" src=\"" + resp.info.carrier_logo + "\" />"});
|
|
|
|
|
} else {
|
|
|
|
|
context.info.push({label: "Carrier", value: resp.info.carrier});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (resp.info.delivery_date) {
|
|
|
|
|
var deliverydatelabel = "Estimated delivery on";
|
|
|
|
@ -93,6 +97,9 @@ function trackOpenAsync( {to, resolve, reject}) {
|
|
|
|
|
if (resp.info.carrier_tracking_url) {
|
|
|
|
|
context.carrierurl = resp.info.carrier_tracking_url;
|
|
|
|
|
}
|
|
|
|
|
if (resp.info.carrier_attribution) {
|
|
|
|
|
context.carrier_attribution = resp.info.carrier_attribution;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (var i = 0; i < resp.events.length; i++) {
|
|
|
|
|
context.events.push({
|
|
|
|
|