DEV Community

ray_v101
ray_v101

Posted on

Using Promises in script tag not working?

Using Promises in script tag not working?

0

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)