Skip to content

Commit

Permalink
Build with inject fix
Browse files Browse the repository at this point in the history
  • Loading branch information
linev committed Oct 11, 2024
1 parent 9ff8ea6 commit 7a429b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/jsroot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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);
});
}

Expand Down

0 comments on commit 7a429b6

Please sign in to comment.