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

Switch from document to window for events

parent 26e7c090
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,6 @@ module.exports = {
detail: options,
});
document.dispatchEvent(event);
window.dispatchEvent(event);
},
};
......@@ -26,7 +26,7 @@ class VPUNotification extends VPULitElement {
i18n.changeLanguage(this.lang);
const that = this;
const listener = document.addEventListener("vpu-notification-send", (e) => {
const listener = window.addEventListener("vpu-notification-send", (e) => {
if (typeof e.detail === 'undefined') {
return;
}
......
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