From 609dbf6a819a736818e9caa03893850f14453d84 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Thu, 15 Aug 2019 15:35:23 +0300 Subject: ensure that content is iterable --- ext/fg/js/source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index cbf0ce7d..bbf00e30 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -240,7 +240,7 @@ class TextSourceElement { let consumed = 0; let content = ''; - for (let currentChar of this.content) { + for (let currentChar of this.content || '') { if (consumed >= length) { break; } else if (!currentChar.match(IGNORE_TEXT_PATTERN)) { -- cgit v1.2.3