diff --git a/lib/better_errors/templates/main.erb b/lib/better_errors/templates/main.erb index 9026a818..61962a2b 100644 --- a/lib/better_errors/templates/main.erb +++ b/lib/better_errors/templates/main.erb @@ -669,7 +669,7 @@ (function() { var elements = ["section", "nav", "header", "footer", "audio"]; for (var i = 0; i < elements.length; i++) { - document.createElement(element); + document.createElement(elements[i]); } })();