We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59cae6c commit 71b1ae7Copy full SHA for 71b1ae7
src/addons/addons/editor-animations/userscript.js
@@ -216,7 +216,7 @@ export default async function({ addon }) {
216
const ogRemoveChild = document.body.constructor.prototype.removeChild;
217
document.body.constructor.prototype.removeChild = function(child) {
218
const element = document.querySelector(`div[class="ReactModalPortal"]`);
219
- if (!element) return;
+ if (!element) return ogRemoveChild.call(this, child);
220
221
let animTime = 200;
222
patchedBody = true;
0 commit comments