Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipzoller/hugo-clarity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/functions.js')
-rw-r--r--assets/js/functions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/functions.js b/assets/js/functions.js
index 44908d4..5c7d915 100644
--- a/assets/js/functions.js
+++ b/assets/js/functions.js
@@ -183,7 +183,7 @@ function parseBoolean(string) {
};
function forEach(node, callback) {
- Array.prototype.forEach.call(node.childNodes, callback);
+ node ? Array.prototype.forEach.call(node.childNodes, callback) : false;
}
function wrapText(text, context, wrapper = 'mark') {