Skip to content

Commit

Permalink
fixed for node 12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
egg- committed Nov 4, 2022
1 parent ca79817 commit a529b4d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/courier/usps.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ var parser = {
var $history = $('.tracking-progress-bar-status-container').find('.tb-step')

$history.each((index, element) => {
if (element.attribs?.class.indexOf('toggle-history-container') !== -1) {
if (
element.attribs &&
(element.attribs.class || '').indexOf('toggle-history-container') !== -1
) {
return
}

Expand Down

0 comments on commit a529b4d

Please sign in to comment.