Skip to content

Commit 9eb7b05

Browse files
authored
Update userscript.js
1 parent e1b6f56 commit 9eb7b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addons/addons/editor-animations/userscript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export default async function({ addon }) {
231231
return;
232232
}
233233

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"]`)
235235
: document.querySelector(`div[class="ReactModalPortal"] div[class*="ReactModal__Overlay"]`)?.firstChild;
236236
if (!element) return;
237237
if (type === "library") {
@@ -256,7 +256,7 @@ export default async function({ addon }) {
256256
// Monkey Patch
257257
const ogRemoveChild = document.body.constructor.prototype.removeChild;
258258
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"]`)
260260
: document.querySelector(`div[class="ReactModalPortal"]`);
261261
if (!element) return ogRemoveChild.call(this, child);
262262

0 commit comments

Comments
 (0)