From 7a429b6a117fe968c873af403f9080b462f1c2e3 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Fri, 11 Oct 2024 14:09:53 +0200 Subject: [PATCH] Build with inject fix --- build/jsroot.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/jsroot.js b/build/jsroot.js index 2cd0316c8..040ade4ce 100644 --- a/build/jsroot.js +++ b/build/jsroot.js @@ -12,7 +12,7 @@ const version_id = 'dev', /** @summary version date * @desc Release date in format day/month/year like '14/04/2022' */ -version_date = '9/10/2024', +version_date = '11/10/2024', /** @summary version id and date * @desc Produced by concatenation of {@link version_id} and {@link version_date} @@ -489,7 +489,8 @@ async function injectCode(code) { element.setAttribute('type', is_mjs ? 'module' : 'text/javascript'); element.innerHTML = code; document.head.appendChild(element); - return postponePromise(true, 10); // while onload event not fired, just postpone resolve + // while onload event not fired, just postpone resolve + return isBatchMode() ? true : postponePromise(true, 10); }); }