Skip to content
Snippets Groups Projects
Commit 188df0fe authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Switch from document to window for events

parent e3afd0b0
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ export default class JSONLD {
initStarted[apiUrl] = true;
// window.VPUAuthToken will be set by on vpu-auth-init
document.addEventListener("vpu-auth-init", function(e)
window.addEventListener("vpu-auth-init", function(e)
{
const xhr = new XMLHttpRequest();
xhr.open("GET", apiUrl, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment