Skip to content

Commit

Permalink
Fix prototype errors in chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany authored and fballiano committed Aug 7, 2023
1 parent 750a10c commit 18f4196
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/prototype/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,9 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {

function remove(element) {
element = $(element);
element.parentNode.removeChild(element);
if (element.parentNode) {
element.parentNode.removeChild(element);
}
return element;
}

Expand Down

0 comments on commit 18f4196

Please sign in to comment.