Исправил ошибку, когда страница не содержала ожидаемого тега

parent 62a2fe6e
......@@ -556,6 +556,11 @@ ETYPOS.prototype = {
// Вторая таблица - контент
var content = document.getElementsByClassName("post")[0];
if (!content) {
return;
}
var pageText = content.innerHTML;
pageFixes.forEach(function(typo) {
var text = typo.text;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment