Await SchemaReady before translating and running Syndicate scripts

This commit is contained in:
Tony Garnock-Jones 2024-04-17 13:25:40 +02:00
parent c1cdf3660f
commit f4f2ad0783
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@ const currentSyndicateTarget = Syndicate.Dataspace.global;
(() => {
async function translateScripts() {
if (SchemaReady) await SchemaReady;
const syndicateScripts =
Array.from(document.getElementsByTagName('script'))