My below code is used to append scripts in DOM using promises. (All below code executes inside iframe for A-frame technology and my code is being generated using Google Blockly[Block-based coding] )
export const appendScript = async({
src,
aframeWindow,
code,
id
},
doc,
callback,
) =>
new Promise(resolve
…
Top comments (0)