From 21eeced7ecef17c978cf52cd44740c24a38d6e89 Mon Sep 17 00:00:00 2001 From: Alexis Coelho Date: Tue, 19 Mar 2024 11:39:21 +0100 Subject: [PATCH] NA - Fix engine specs --- scripts/scripts.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/scripts.js b/scripts/scripts.js index e4da769..cceb6fb 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -138,9 +138,11 @@ async function prepareSpecification() { const specContainer = addEngineSpecifications( JSON.parse(engineSpecification.specifications), ); - const engineDescription = document.querySelector('#engine ~ p + p'); + const engineDescription = document.querySelector('.default-content-wrapper > div > :nth-child(2 of .sub-group)'); - engineDescription.after(specContainer); + if (engineDescription) { + engineDescription.append(specContainer); + } } } }