mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:49:59 +02:00
Prevent loading mutliple times the same feature
This commit is contained in:
parent
83b672d981
commit
fc7f08c827
1 changed files with 2 additions and 1 deletions
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue