From 5f69596d25b8d05b6dc2aacb4d3e8dd1a3f88ed6 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 16 Mar 2021 17:39:56 +0100 Subject: [PATCH] add icaoType to planespotter API requests --- html/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index 3ea27f9..56405d3 100644 --- a/html/script.js +++ b/html/script.js @@ -2095,7 +2095,10 @@ function refreshPhoto(selected) { let param; if (selected.registration != null) { urlTail = '/hex/' + selected.icao.toUpperCase() + '?reg=' + selected.registration; - param = 'hex+reg'; + if (selected.icaoType) { + urlTail += '&icaoType=' + selected.icaoType; + } + param = 'DB'; } else if (!selected.regLoaded) { return; } else {