Index: chrome/content/errors.html |
=================================================================== |
--- a/chrome/content/errors.html |
+++ b/chrome/content/errors.html |
@@ -60,17 +60,17 @@ |
(/adblock/i.test(message.errorMessage) || /adblock/i.test(message.sourceName) || |
id && (message.errorMessage.indexOf(id) >= 0 || message.sourceName && message.sourceName.indexOf(id) >= 0))); |
}); |
if (messages.length) |
{ |
document.write("<p>Errors related to Adblock Plus:</p>"); |
- for each (let message in messages) |
+ for (let message of messages) |
{ |
let type = (message.flags & Components.interfaces.nsIScriptError.warningFlag ? "warning" : "error"); |
let html = "<b>" + (type == "warning" ? "Warning:" : "Error:") + "</b><br>"; |
html += encodeHTML(message.errorMessage) + "<br><br>"; |
if (message.sourceLine) |
html += "Source line: " + encodeHTML(message.sourceLine) + "<br>"; |
if (message.sourceName) |
html += "Location: " + encodeHTML(message.sourceName) + " line " + message.lineNumber + "<br>"; |