From 9e54521a7debdf40e3ad0ff3cf210e52f40a841c Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Thu, 2 Jul 2020 14:15:06 +0200 Subject: [PATCH] kk --- tracking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracking.js b/tracking.js index 75a86a4..9741ed6 100644 --- a/tracking.js +++ b/tracking.js @@ -39,7 +39,7 @@ const isCourier = (tr, courier) => getCourier(tr).indexOf(courier.toLowerCase()) const getTrackingUrl = (tr, courier) => courier ? courier_info[courier.toLowerCase()] && courier_info[courier.toLowerCase()].tracking_url + tr - : courier_info[getCourier(tr)[0]].tracking_url + tr; + : courier_info[getCourier(tr)[0]] && courier_info[getCourier(tr)[0]].tracking_url + tr; const injectPatterns = (courier, patt) => !courier || !courier_info[courier.toLowerCase()] ? false