Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load api via jquery getScript() #40

Open
redtopia opened this issue Aug 4, 2022 · 0 comments
Open

Cannot load api via jquery getScript() #40

redtopia opened this issue Aug 4, 2022 · 0 comments

Comments

@redtopia
Copy link

redtopia commented Aug 4, 2022

Expected Behaviour

Use jquery getScript() to load the API at run time when needed, the script is loaded and the adobe_dc_view_sdk.ready event is fired.

Actual Behaviour

An unhandled javascript exception occurs: TypeError: Cannot read properties of undefined (reading 'src') at loadSDKScript

Sample Code that illustrates the problem

https://jsfiddle.net/redtopia/o3m689sg/6/ (view the console to see the exception)

The following fiddle fixes the issue by loading the script with vanilla javascript

https://jsfiddle.net/redtopia/Lyqdj2zm/6/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant