From 4b49d88336e692257ebd6ef0816a4fa728f78cee Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Mon, 21 Oct 2024 10:27:01 +0100 Subject: [PATCH] Changed variable name --- js/Injector.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/Injector.js b/js/Injector.js index cdea169..38e2131 100644 --- a/js/Injector.js +++ b/js/Injector.js @@ -36,7 +36,7 @@ class Injector extends Backbone.Controller { } processNode(node) { - if (node._isBionic) return; + if (node._isDefinitioned) return; const textNodes = [...node.childNodes] .filter(node => node.nodeType === Node.TEXT_NODE) .filter(node => node.nodeValue.trim()); @@ -47,7 +47,7 @@ class Injector extends Backbone.Controller { if (isInsideForbiddenParents) return; const isInsideRequiredParents = Boolean($(parentElement).closest(requireParents).length); if (!isInsideRequiredParents) return; - parentElement._isBionic = true; + parentElement._isDefinitioned = true; const value = String(node.nodeValue); const children = []; const keywords = [...value.matchAll(Adapt.definitions._regexp)]; @@ -81,7 +81,7 @@ class Injector extends Backbone.Controller { } children.push(...selected.map(copy => { parentElement.insertBefore(copy, node); - copy._isBionic = true; + copy._isDefinitioned = true; return copy; })); parentElement.removeChild(node);