Skip to content

Commit 71b1ae7

Browse files
authored
editor animations addon -- this should fix stuff not deleting
1 parent 59cae6c commit 71b1ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export default async function({ addon }) {
216216
const ogRemoveChild = document.body.constructor.prototype.removeChild;
217217
document.body.constructor.prototype.removeChild = function(child) {
218218
const element = document.querySelector(`div[class="ReactModalPortal"]`);
219-
if (!element) return;
219+
if (!element) return ogRemoveChild.call(this, child);
220220

221221
let animTime = 200;
222222
patchedBody = true;

0 commit comments

Comments
 (0)