Fixed: Removed unnecessary complexity

This commit is contained in:
Richard Benjamin Allen 2024-09-17 23:38:48 +01:00
parent b28b77fdbd
commit c0eae951c6

View File

@ -138,11 +138,6 @@
this.elementWrapper.id = "overlay-wrapper";
}
const overlayStyles = window.getComputedStyle(this.element);
for (let style of overlayStyles) {
this.elementWrapper.style[style] = overlayStyles.getPropertyValue(style);
}
this.style = this.elementWrapper.style;
this._init(options);
};