How to load library in a theme component

Thanks very much!

But I thought I did that:

    return loadScript(settings.theme_uploads.QRCode).then(() => {
      return loadScript(settings.theme_uploads.QRCode);
    });

I tried very hard to change your example as little as possible :slight_smile:

Maybe I need to use a .then when I’m trying to use the code later?

But that doesn’t solve the CSP issue, does it?

image