Commit 93906289 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed event listener definition

parent e96188ee
......@@ -12,11 +12,11 @@ document.addEventListener("DOMContentLoaded", (event) => {
if(document.readyState == 'complete'){
initResultSaver();
}else{
document.onreadystatechange = e => {
document.addEventListener("readystatechange", e => {
if (document.readyState === 'complete') {
initResultSaver();
}
};
});
}
});
......
......@@ -2,11 +2,11 @@ document.addEventListener("DOMContentLoaded", (event) => {
if(document.readyState == 'complete'){
initialize();
}else{
document.onreadystatechange = e => {
document.addEventListener("readystatechange", e => {
if (document.readyState == 'complete') {
initialize();
}
};
});
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment