From c0eae951c6e038ae514b7b5d9b0aa562954d05a7 Mon Sep 17 00:00:00 2001 From: Richard Benjamin Allen Date: Tue, 17 Sep 2024 23:38:48 +0100 Subject: [PATCH] Fixed: Removed unnecessary complexity --- src/overlay.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/overlay.js b/src/overlay.js index 6bec18cf..bc903659 100644 --- a/src/overlay.js +++ b/src/overlay.js @@ -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); };