File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/addons/addons/editor-animations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ export default async function({ addon }) {
231
231
return ;
232
232
}
233
233
234
- element = elementName === "addonModal" ? document . querySelector ( `div[class^="modal_modal-overlay"] div[class*="modal_modal-content"]` ) ;
234
+ element = elementName === "addonModal" ? document . querySelector ( `div[class^="modal_modal-overlay"] div[class*="modal_modal-content"]` )
235
235
: document . querySelector ( `div[class="ReactModalPortal"] div[class*="ReactModal__Overlay"]` ) ?. firstChild ;
236
236
if ( ! element ) return ;
237
237
if ( type === "library" ) {
@@ -256,7 +256,7 @@ export default async function({ addon }) {
256
256
// Monkey Patch
257
257
const ogRemoveChild = document . body . constructor . prototype . removeChild ;
258
258
document . body . constructor . prototype . removeChild = function ( child ) {
259
- const element = elementName === "addonModal" ? document . querySelector ( `div[class^="modal_modal-overlay"]` ) ;
259
+ const element = elementName === "addonModal" ? document . querySelector ( `div[class^="modal_modal-overlay"]` )
260
260
: document . querySelector ( `div[class="ReactModalPortal"]` ) ;
261
261
if ( ! element ) return ogRemoveChild . call ( this , child ) ;
262
262
You can’t perform that action at this time.
0 commit comments