Make hint foundries configurable
Resolves #173
and the milestone from, originally, 1 Apr 2025
Change-Id: Iaa062ae4831187c96f99f339b29cc4374cc31afd
diff --git a/dev/js/src/hint.js b/dev/js/src/hint.js
index de9c09b..bcdd6a6 100644
--- a/dev/js/src/hint.js
+++ b/dev/js/src/hint.js
@@ -64,6 +64,11 @@
console.log("No annotationhelper defined");
return;
};
+
+ // Apply configured foundry filter from data-hint-foundries attribute
+ if (KorAP.annotationHelper.filterByConfig) {
+ KorAP.annotationHelper.filterByConfig();
+ };
/**
* @define {regex} Regular expression for context