Prevent loading mutliple times the same feature

This commit is contained in:
mauro-balades 2024-10-04 19:18:57 +02:00
parent 83b672d981
commit fc7f08c827
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -42,6 +42,7 @@ class ZenMultiWindowFeature {
class ZenDOMOperatedFeature {
constructor() {
window.addEventListener('DOMContentLoaded', this.init.bind(this));
var initBound = this.init.bind(this);
window.addEventListener('DOMContentLoaded', initBound, { once: true });
}
}